Comment on Why Everyone Is Talking About NodeparentComments−mrspeaker15y"function" will be gone soon enough - replaced (ok, augmented) in the next version of JS with "#" - so you'll be able to write: #(x) { x * x } instead of function(x){ return x * x; }http://brendaneich.com/2011/01/harmony-of-my-dreams/ (He indicates that the function change will land in this ((very good)) podcast: http://www.aminutewithbrendan.com/pages/20110303)−burke15yWhich would make it 3.times(#(i) { /* code */ }). That's not bad at all.−didip15yGah, line noise. Imagine using that + jQuery:3.times(#(){ $("#some_id").attr("href").hide(); });
Comments
"function" will be gone soon enough - replaced (ok, augmented) in the next version of JS with "#" - so you'll be able to write: #(x) { x * x } instead of function(x){ return x * x; }
http://brendaneich.com/2011/01/harmony-of-my-dreams/ (He indicates that the function change will land in this ((very good)) podcast: http://www.aminutewithbrendan.com/pages/20110303)
Which would make it 3.times(#(i) { /* code */ }). That's not bad at all.
Gah, line noise. Imagine using that + jQuery:
3.times(#(){ $("#some_id").attr("href").hide(); });