3 ms·
Nonsense. The equivalent JavaScript is clearer, albeit more verbose.
by TazeTSchnitzel 14y ago
Nonsense. The equivalent JavaScript is clearer, albeit more verbose.
- callil 14y agoI think that's the point, verbose is usually "containing more words than necessary"
- deleted 14y ago[deleted]
- nahname 14y agoNeither 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')
- TazeTSchnitzel 14y agoAt least I can look at the first one and it's more obvious to me what it does. The braces help.