Re:Concurrent JavaScript: It can work
by phailhaus on Wednesday August 30, 2017 @02:02PM
(#15134440)
JS already supports immutable objects, by using Object.freeze().
[ Parent
| on HN ]
That doesn't really make things immutable. Even ignoring the deep vs shallow issue, consider what effect Object.freeze has on a JS Map (hint: none, really; you can still add/remove things).
Re:Concurrent JavaScript: It can work
by phailhaus on Wednesday August 30, 2017 @03:44PM
(#15135305)
Right, that's where libraries like ImmutableJS come in.