News for hackers. Stuff that matters.
Re:Clojure – Fascinated, Disappointed, Astonished (2016) by jfim on Friday January 24, 2020 @10:28PM (#22144441)
You're assuming that x+[5] mutates the list instead of returning a new list.

If you're planning to have multiple threads append items to a list, the immutable way to do it is to have each thread return a list of items to append to the main list, then fold those items into the list.

Re:Clojure – Fascinated, Disappointed, Astonished (2016) by reitzensteinm on Friday January 24, 2020 @11:37PM (#22144716)
No, parent post is definitely not assuming that.