Hacker News new | ask | show | jobs
by madia_leva 1862 days ago
Hmmmm... I wonder how you would avoid the expressions from being evaluated without wrapping then in a function (sorry if it's a lame question, I haven't done any JS in years).

Not that there is anything wrong with lambdas, but it's quite a los of boilerplate for something as simole as a cond.