Re: Function statement name syntax in Lua

"'Scott Morgan' via lua-l" <[email protected]>
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>
On 01/02/2026 14:13, 'Martin Eden' via lua-l wrote:
> I'm talking that ":" sugar in function definition considered harmful.
> In function _definition_. Not in function call.
TBH, I think that's one place the manual could do with a bit of work. 
The `:` function definitions are very common in Lua, but very opaque to 
new users. And all you've got is a small, very easy to miss paragraph 
buried in the overall description of function definitions.

Possibly needs a clear sub-heading to that section to highlight it as 
important. Same for the `:` function call definition.

Scott

-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/3fdefa13-0ac8-458b-b327-65b0fbc650ea%40blueyonder.co.uk.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.