Been looking at immutability in JavaScript today and wow... it's as annoying as it is in Java, but with less of the paradigms around it (getters and setters).
And objects.assign({}, yourOb)
is shallow too.
Meanwhile, primitives are totally immutable (winner!)
[#]JavaScript #Java #code #WebDev
=> More informations about this toot | View the thread | More toots from hazz223@mstdn.social
=> View javascript tag | View java tag | View code tag | View webdev tag This content has been proxied by September (3851b).Proxy Information
text/gemini