> How about a small syntactic sugar for useful and widespread construction:
> 
> x = x || 10
> 
> to remove this repetition from the right side:
> 
> x ||= 10.
> 
> module JSON ||= load(...);


I do not mean to hijack this thread about what seems a very good modules 
proposal. But this operator is something I have wished for many times when 
writing ES code. So it would be a very welcome addition, and the construction 
is indeed in very widespread use.

Jürg
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to