incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Heidegger ...@leichtgewicht.at>
Subject Re: Flex adopting haXe ?
Date Wed, 22 Feb 2012 14:54:47 GMT
<soft rant>
I just remembered another thing that makes me a little mad every time I 
read into coding with haXe:
   var a: String= ...;
   return a || "b";
   // equals
   return a != null ? a : "b";

is so incredibly comfortable in ActionScript3. And it can be 100% 
syntatically right. And the ||= is even more
awesome:

    return inst ||= "b";
    // equals:
    return inst != null ? inst : inst = "b";

A lot less code with exact and easy to understand meaning.
</soft rant>

yours
Martin.

Mime
View raw message