[haXe] Request: &&= and ||= operators

Nicolas Cannasse ncannasse at motion-twin.com
Fri Dec 15 15:06:08 CET 2006


> Hi Nicolas and List,
> 
> A really nice addition to the current set of operators in haXe would
> be &&= and ||=, e.g:
> 
> bool &&= true; // expands to bool = bool && true;
> bool ||= true; // expands to bool = bool || true;
> 
> Any chance of these being implemented, Nicolas?

I guess that  bool &&= true can be simplified to bool = bool && true,
then to bool = bool, then to the empty line :)

Similar for bool ||= true => bool = bool || true => bool = true ;)

More seriously, I'm not a big fan of these.

Nicolas



More information about the Haxe mailing list