3 ms·
Why?
by Kiro 10y ago
Why?
- dozzie 10y agoBecause that's the convention everywhere else.
- BillinghamJ 10y agoRight, but that's not the convention in Node. Anonymous functions always go last.
- patricklynch 10y agoBecause then you can curry/partially apply functions independent of your data. It's _not_ because it's convention everywhere else. (I realize that only really makes sense if you know why it makes sense, so this video gives a pretty good explanation in ~30 minutes - https://www.youtube.com/watch?v=m3svKOdZijA https://www.youtube.com/watch?v=m3svKOdZijA)
- deleted 10y ago[deleted]