News for hackers. Stuff that matters.
Re:Carp – A statically typed Lisp, without a GC, for real-ti... by JoelMcCracken on Friday October 15, 2021 @01:55PM (#28880796)
I mean generally tying the knot is a useful technique, but I think these scenarios all require/exploit non-strict, which is in itself not really immutable in the sense most people use it.

But yes, such code is often useful so that e.g. a parent xml node can refer to its childen nodes while also children nodes can refer to their parents.

Anyway, I'm not sure about this, but I think you can't have circular data structures in the context of strict evaluation (or can you? maybe by defering execution via anonymous functions? I wonder....)

Re:Carp – A statically typed Lisp, without a GC, for real-ti... by jbjohns on Saturday October 23, 2021 @04:21PM (#28971877)
I'm fairly certain I've done similar things in Ocaml (in fact, I think it's where I learned this technique).