On Mar 2, 2012, at 4:31 PM, Luke Hoban wrote: >>> What do you think? Do you like -> better than <| ? Is it ok to not have it >>> available for some possible future function shorthand? > > Using -> for the proto-of operator effectively also removes the ability to > use => as function shorthand later, due to the syntactic similarity of these > two operators.
On second thought, that's actually not true. The fact that CoffeeScript uses both for functions (with different this-binding) behavior is actually not universally loved; it causes confusion due to the extremely close similarity of the operations. By contrast, using the two symbols for very *different* purposes means that you don't get subtle changes in your program's behavior if you get the wrong one-- it fails faster. It's not at all a foregone conclusion that we couldn't use => for a function form and -> for proto. Dave _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss