@lesley@mastodon.gamedev.place
Post #730098
2026-03-19 11:57 UTC
I don't know. The complexity of this issue (both implementations and the mental overhead of programmers) just to save a few keystrokes makes me feel it's not really worthwhile? It feels more like a fashion when the convinience is debatable?
#pldev
https://terts.dev/blog/no-semicolons-needed/
Replies (1)
-
@andnull@social.nouveau.community 2026-03-19 12:10
@lesley Lua's approach is rather simple since it's part of the grammar of the language. Semicolon insertion is just a weird hack imo. If you want to strip statement terminators, it's better to do that at the grammar level rather than tokenizer level. And, immediately invoked function expressions are kinda code smell in Lua. I have never used on and tend to opt for like local x do ... stuff to set up x ... end