3 ms·
Ah yes, that is a use-case. Though, if I were to implement something like that, I would add an extra set of parens around (big-long-calculation) and specify th
by davexunit 10y ago
Ah yes, that is a use-case. Though, if I were to implement something like that, I would add an extra set of parens around (big-long-calculation) and specify the name to bind the value to:
(aif (it (big-long-calculation))
(foo it))
- groovy2shoes 10y agoYep, that's how I do it in Scheme myself, though I've called the construct `let-if` :)