Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pharmakom
· 2y ago · 0 comments
Immutable structures cannot be cyclical. Maybe I’m missing something?
Comments
[–]
Jeaye
2y ago
Exactly as nlitened mentioned, Clojure has a few difference reference types, which are boxes that hold pointers to more immutable values. The values within those boxes can be changed transactionally. This allows for cyclical references.
[–]
nlitened
2y ago
In Clojure, the data structures may usually contain references to mutable cells, which in turn may form cycles.