2 ms·
I think the specification committee for ANSI Common Lisp would have agreed that defaults matter. It's just that their criteria for defaults was "What profession
by brudgers 10y ago
I think the specification committee for ANSI Common Lisp would have agreed that defaults matter. It's just that their criteria for defaults was "What professional programmers are doing right now".
Historically, Scheme somewhat dodged avoided issues like argument order by excluding functionality from the language spec. My experience is that once Scheme gets expanded out and becomes Racket, the many hands show up as inconsistencies among similar functions much like Common Lisp.
Clojure, to me, seems to have the right idea: procedures that abstract operations from data types...for example there is not one mapping procedure for lists and another mapping procedure for arrays. Racket seems to be headed in that direction.
- kbp 10y ago> for example there is not one mapping procedure for lists and another mapping procedure for arrays. In Common Lisp, MAP works just as well on either.
- brudgers 10y agoIn Clojure map also works on hashes and sets. In keeping with the previous discussion, there's also only one variety of map in Clojure. It's this orthogonality of operations and datatypes that I think is Clojure going in the right direction. None of which is to say that Clojure isn't standing on the shoulders of giants.
- kbp 10y agoYou might be interested in the FSet library (among others): https://common-lisp.net/project/fset/Site/index.html https://common-lisp.net/project/fset/Site/index.html
- thomasvarney723 10y agoVery well said. The advent of transducers in Clojure has made this 'orthogonality' especially true.
- qwertyuiop924 10y ago...And us schemers have the TinyCLOS derivatives, so our map could work on any DS: by default, however, it doesn't :-(.