Hacker News new | ask | show | jobs
by oskarkv 4788 days ago
Does Chicken have immutable data structures? How about typeclasses/protocols? How about literal syntax for hash maps, sets, vectors/arrays?

I'm coming from Clojure, and I'm interested in Chicken. I really like the things mentioned above about Clojure and I am just interested in how Chicken compares when it comes to these things.

1 comments

In short, no. I believe these things can be added via extensions, but the only thing from your list to be implemented this way is a persistent-hash-map [1] so far (the egg doesn’t provide for a reader syntax though, but it is definitely possible to add [2]).

[1] http://wiki.call-cc.org/eggref/4/persistent-hash-map

[2] http://wiki.call-cc.org/man/4/Unit%20library#reader-extensio...