News for hackers. Stuff that matters.
Re:New Features in Java 14 by namelosw on Wednesday March 04, 2020 @08:57AM (#22483747)
It is very cumbersome to not having the 'copy' or equivalence so that a lot of functional languages have similar things:

F#: let updated = { old with prop = newValue }

Elixir: update = %{ old | prop: newValue }

Even JavaScript have similar stuff: const update = { ...old, prop: newValue }

Re:New Features in Java 14 by capableweb on Tuesday March 17, 2020 @07:40PM (#22611895)
Clojure: (assoc old :key new-value)

just a fn in the end