Re:Douglas Crockford on Fat Arrow Functions in JavaScript
by starwed on Saturday March 31, 2012 @05:14PM
(#3781559)
This is not just about syntax. Unless using bind somehow grants the mentioned property that
>"Fat arrow functions do not have prototype properties, which makes them cheaper to make. They are immutable."
Re:Douglas Crockford on Fat Arrow Functions in JavaScript
by mattbriggs on Saturday March 31, 2012 @06:58PM
(#3781835)
granted, but that sounds more like a micro optimization rather then significantly changing the behavior of the language
currently, function(){} is the exact same as the proposed ()->{}, and (function(){}).bind(this) is the exact same as ()=>{}