3 ms·
Didn't racket also make the decision to make cons create immutable lists (and using mcons for mutable lists)?
by zodiac 10y ago
Didn't racket also make the decision to make cons create immutable lists (and using mcons for mutable lists)?
- qwertyuiop924 10y agoBut that's not what Clojure did. In clojure, cons cells aren't cons cells: they're a cell that can point to a sequence of some type, and contain a pointer to arbitrary data. They also do not make up lists, and have weird equality rules. Racket's conses are merely immutable.