|
|
|
|
|
by FRex
3260 days ago
|
|
Lua does too, for literal tables and strings being sole argument you can omit parentheses. But to call method on a literal you need to add them. > print("OK") > print "OK" > ("OK %d"):format(1) I've seen some funky (ab)use of these, people using literal strings and tables and functions named class and similar to do: > class "Something" { > -- ... > } |
|
Hell, it even allows you to do this:
> somefunc "1string" "2string" "3string" > somefunc {} {} {}