News for hackers. Stuff that matters.
Re:Lua's Grammar Is Ambiguous by lioeters on Tuesday July 26, 2022 @07:17PM (#32245269)
If you start a line with (, [, +, -, or /, then a semicolon is necessary to disambiguate and prevent it from operating on the previous line.

Personally, I like to put a semicolon at the beginning of such a line only, and omit semicolons otherwise where they're unnecessary.

Re:Lua's Grammar Is Ambiguous by mdaniel on Tuesday July 26, 2022 @06:47PM (#32245049)
damn I hate cute code; variables are free and don't lead to "wat" outcomes

  local theShader = (shaderGiven or g3d.shader)
  theShader:send("viewMatrix", camera.viewMatrix)
maybe even without the parens, I'm no lua ninja
Re:Lua's Grammar Is Ambiguous by wizwit999 on Tuesday July 26, 2022 @06:20PM (#32244826)
like JavaScript