On Tue, Apr 24, 2012 at 10:28 AM, Gordon Smith <gosm...@adobe.com> wrote:

> Speaking as the person who has written the most complete spec for MXML (at
> far as I know) -- although I'm not currently as an active contributor to
> Apache Flex --  this use of $ in the language strikes me as rather
> arbitrary. Other MXML compiler directives start with @, such as @Embed,
> @Resource, and @{...}. BTW, I see the latter as a poor choice; it should
> have been something like @TwoWay{...} for consistency with the others.
>
> I suggest @Once.
>
> - Gordon


I think the @Once{} syntax looks much more appealing than ${}, as Gordon
states it looks a lot more consistent with other directives and it also
expresses its intent much more clearly. I like this proposal as an addition
to the framework. I would expect @Once to set the value one time during
instantiation of the object with the directive, waiting for first non-null
just doesn't sound like a good thing.

-omar

Reply via email to