by yakubin · 4y ago · 0 comments
Are you saying that in your eyes the Common Lisp and Haskell snippets are equally terse? To me the Haskell snippet looks a lot shorter and easier to read. Counting tokens also supports that judgement.
(But I'm not sure if I prefer terseness to that level. Explicitness has value too.)
(function evenp)
but instead write the shorthand version #'evenp (complement #'evenp)
vs the example: (lambda (n) (not (evenp n)))
Not much shorter by character count, but it is shorter by token count.