3 ms·
Honestly, I don't like that style for languages which allow multiple side-effects as well. For example, (progn (print "something") 0) Is honestly
by tsimionescu 4y ago
Honestly, I don't like that style for languages which allow multiple side-effects as well. For example,
(progn
(print "something")
0)
Is honestly pretty ugly from my point of view.
- mikepurvis 4y agoSure, definitely, and in a case like that (say, in rust), I would just put an explicit `return` in. But there are lots of other scenarios where the result is naturally being returned by the final expression and it's quite convenient to elide the extra keyword.