ITADN

Bracket alignment and spacing.

#1086OpenSafebox36 创建于 2026-03-16
S
Safebox36commented
I don't think I've seen this feature requested, but something that's a bit of a contentious issue with other Lua devs I've collaborated with is how tables and spacing in general with bracketted elements should work. I'm preferable to no spacing like `{value, otherValue}` / `(param1, param2)` but one prefers `{ value, otherValue }` / `( param1, param2 )` and another prefers there not even be spaces between commas. I'm also anti-dangling bracket, so when a table needs to take up multiple lines, I prefer when the opening begins on the next line instead of the same line as the variable assignment. I know these are a lot of formatting features to ask about in a single ticket, but given the overlap I figured it couldn't hurt to ask in the one place.
0 条评论