5 ms·
> It's nice that most of Janes the literals match Clojure Two things: * Janet doesn't have a built-in set data structure literal. Need to use a library for th
by uvtc 4y ago
> It's nice that most of Janes the literals match Clojure
Two things:
* Janet doesn't have a built-in set data structure literal. Need to use a library for that.
* Janet has mutable and immutable versions of arrays and hashmaps (the literals for the mutable variety are prefixed with `@`)
- samatman 4y agoI was surprised to discover that Janet tuples and records (the immutable array and hashmap you've mentioned) aren't the Clojure-style immutable which is designed for cheap updates, but the more usual kind of immutable where if you want a copy with changed data, you have to make a copy with changed data.