3 ms·
:if => lambda { |(cond, thn, els), ctx| eval(cond, ctx) ? eval(thn, ctx) : eval(els, ctx) }, Seriously, any production code like that (very long line, crypt
by skrebbel 15y ago
:if => lambda { |(cond, thn, els), ctx| eval(cond, ctx) ? eval(thn, ctx) : eval(els, ctx) },
Seriously, any production code like that (very long line, cryptic variable names to make it fit better on said line) would get nasty review comments here.
Why not put the whole thing a single line and have an even prettier page title?