5 ms·
When has no else and if has no explicit progn. If you need an else for a side effect then cond or if will be used. I don't think there is a consensus on which o
by aidenn0 7y ago
When has no else and if has no explicit progn. If you need an else for a side effect then cond or if will be used. I don't think there is a consensus on which of those to use for side effect vs expression when an else is needed
- arethuza 7y agoI probably got that idea from CLtL: https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node84.html https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node84.html Very much a "stylistic preference" though! Edit: I realised that for the 6 years or so I wrote CL as part of my day job that my well thumbed copy of CLtL was by far the most referenced programming language book I have ever used (mostly falling open at either the loop or CLOS chapters). Not sure what this says about CL!