News for hackers. Stuff that matters.
Re:Ember.js 2.7 and 2.8 beta released by orf on Tuesday July 26, 2016 @08:55AM (#12165243)
I agree and one of the downsides is exactly this. I've felt this pain before :(

But there is no way around it - property keys are strings because they can be many layers deep (`foo.bar.test.abc`), and if any of those are undefined then the result is undefined. Also any of those properties (`foo`, `bar`, `test` or `abc`) could be themselves computed properties that depend on others. You also get features like `@each`, used for arrays like `[email protected]`.

Perhaps a good middleground would be to do something like C#'s LINQ stuff, where the lambdas are analysed and the values extracted.

There are no comments on this comment yet.