lua-users home
lua-l archive

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




On 11/06/15 09:53 AM, KHMan wrote:
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 :-)

Quaternary operator? As in,

var1
val = var2 $ var3
var4

Or aligned

          var1
val = var2 $  var3
var4

Yes?

--
Disclaimer: these emails are public and can be accessed from <TODO: get a non-DHCP IP and put it here>. If you do not agree with this, DO NOT REPLY.