|
> Will concatenation operator be available out-of-the-box?
> [1, nil] .. [nil, 4] --> [1, nil, nil, 4]
I don’t have a strong opinion whether arrays would need a concat operator by default, but since they’re not available for tables either and arrays are basically tables with some special semantics for insertion/removal,
> [[1],[2]] -- syntactically correct, but not a 2D-array! :-)
Yep, this is a caveat, but as you showed, can be worked around by adding a space between ‘[‘ so not a huge problem.
I wish Lua could have chosen another syntax for multiline strings though. For example
"""this is a
multiline string"""
would have been more logical choice and easier to type, but I understand there are issues with escaping inside the string