lua-users home
lua-l archive

Re: [PROPOSAL] [PATCH] simple method call

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


On 6/11/2015 8:58 PM, Soni L. wrote:
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?
It was a posting in 2010.
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

AltStyle によって変換されたページ (->オリジナル) /