Re:Discourse ditches CoffeeScript
by TazeTSchnitzel on Saturday February 23, 2013 @05:45AM
(#5269292)
Nonsense. The equivalent JavaScript is clearer, albeit more verbose.
[ Parent
| on HN ]
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')
Re:Discourse ditches CoffeeScript
by TazeTSchnitzel on Saturday February 23, 2013 @01:06PM
(#5270689)
At least I can look at the first one and it's more obvious to me what it does. The braces help.