Elektrine lite

← Feed

@andnull@social.nouveau.community

Post #1521448

2026-03-19 12:10 UTC

@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

Replies (1)

  • @lesley An amusing one not include is GDScript having tabbed syntax, but also including ; it's grammar. It's weird and I have only abused for needless oneliners. if x: f(); g(); h() # this us all under the if statement iirc

    Open ##1521449