90 points · by montyanderson · 2y ago · 34 comments
I used to like Lisp-1s when I used Scheme, but having used Common Lisp for a while I've come to appreciate Lisp-2s, if only for silly things like...
(defun foo (list)
(declare (type List list))
(assert (> (length list) 1))
(list (second list)
(first list)))
Everything else aside it seems like a nice finger exercise for learning Zig.I 100% agree with formatting and I've started fixing it, the leftovers were from some (misguided) experimenting.
It saves a little bit of typing in exchange for a lot of ambiguity.
"runde Klammern" for (), "eckige Klammern" for [], and "geschweifte Klammern" for {}.
Although when you say only "Klammern" people usually understand (), because that is what is often used in texts.
This translates well:
runde Klammern --> parentheses, eckige Klammern --> brackets, geschweifte Klammern --> braces.
As such, the US English understanding of the words is clearer to me, than a non-distinguishing understanding.
An example usage:
(filter (quicksort '(5 40 1 -3 2) <) (λ (x) (>= x 0)))
Though I prefer ^ since it’s easier to type.
Replaced the example with lambda - appreciate the feedback!