Re:Joy: A maximalist web framework for Lisp aficionados
by samatman on Tuesday June 07, 2022 @04:02PM
(#31659397)
I 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.
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 `@`)