Hacker News new | ask | show | jobs
by TazeTSchnitzel 4864 days ago
Nonsense. The equivalent JavaScript is clearer, albeit more verbose.
2 comments

Neither is very palatable.

MyApp.president = Ember.Object.create(({fullName: (function() {return this.get('firstName')+' '+this.get('lastName');}).property('firstName', 'lastName')}));

MyApp.president = Ember.Object.create fullName: (-> @get('firstName') + ' ' + @get('lastName') ).property('firstName', 'lastName')

At least I can look at the first one and it's more obvious to me what it does. The braces help.
I think that's the point, verbose is usually "containing more words than necessary"