lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 6/11/2015 8:26 PM, Rodrigo Azevedo wrote:
REASONING

There are uncountable examples of "methods" that do not need an
argument, for example

led[1]:blink
arm[2].pos[3]:go
z:abs
z:Re
polynomial:diff
etc

PROPOSAL

Raise the "methods" syntactic sugar ":" to a function call without
arguments, with the exception of the ubiquitous "self", namely,
call "methods" without the common usage of  '(' ')', or '{' '}' or
' " ' ' " '.
[snip snip]

Looks like we have a bunch of enthusiastic young folks raring to contribute to the language!

Ah, none of you will ever top the 'Quaternary operator' proposal... :-p :-)

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia