elvis pattern refinement (was Syntax patterns)
Reinier Zwitserloot
reinier at zwitserloot.com
Fri Apr 24 10:49:58 PDT 2009
Ali, the proposal phase is long gone. These discussions about the
elvis pattern are about which of 2 already submitted proposals to take
(just the elvis operator, or also ?. and others) - that's why Ruslan
and Stephen are sorting out how useful they would be in code bases.
The other statistics Ruslan is reporting are also in regards to
completely specified proposals submitted before the deadline of March
30th.
--Reinier Zwitserloot
Like it? Tip it!
http://tipit.to
On Apr 24, 2009, at 19:44, Ali Ebrahimi wrote:
> My Idea for this proposal:
>
> result = a!.method():b;
>
> Null-Safe Call Operator: !.
> return type a.method() and type of var b is assignable to result.
>
> equivalents with :
>
> if( a!= null){
> result = a.method();
> } else{
> result =b;
> }
>
> *Or
>
> result = a != null? a.method(): b;
>
>
> Best Regards
> Ali Ebrahimi
> *
>
More information about the coin-dev
mailing list