Lua's Grammar Is Ambiguous(sebsite.pw) |
Lua's Grammar Is Ambiguous(sebsite.pw) |
Personally, I like to put a semicolon at the beginning of such a line only, and omit semicolons otherwise where they're unnecessary.
local theShader = (shaderGiven or g3d.shader)
theShader:send("viewMatrix", camera.viewMatrix)
maybe even without the parens, I'm no lua ninja