Looking at the implementation of E4X in ActionScript, it occurs to me that they need to figure out how to do three things, which I'm not sure what can be done in ActionScript regularly:
Properties / Getters prefixed with @:
var myAttribute = xmlPerson.@name;
Unnamed functions for filtering:
xmlData.person.(/* predicate */)
lambda syntax for predicates:
xmlData.person.(@name == "Brian")
So, here is my question: are these only one-time features (like, for example Vector.<>) that they insert only for E4X, so before they reach us? Or do we, as ActionScript developers, have access to these features?
In particular, I would like to access the expression tree of this lambda predicate for my own code (not attached to XML classes in any way).
I realized this is called a "filter statement" ... but I'm not sure how to use it. Not sure I can ... because ActionScript does not allow operator overloading :(
source
share