[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Question on get/setmetatable()
- From: Sean Conner <sean@...>
- Date: Sun, 24 May 2020 17:42:03 -0400
It was thus said that the Great Andrew Gierth once stated:
>
> [[x]] is a long-bracket string literal, equivalent to "x".
>
> So t[[x]] is equivalent to t "x" which is equivalent to t("x").
There is a subtle difference---with [[ ]] strings, escape sequences don't
work.
"one\ttwo" => one two
[[one\ttwo]] => one\ttwo
Also, the [[ ]] can span multiple lines without issue.
-spc