3 ms·
Granted, this is Python, but I wrote this a while back: https://github.com/scooby/pyrsistent-mutable https://github.com/scooby/pyrsistent-mutable Basically, it
by ben509 8y ago
Granted, this is Python, but I wrote this a while back: https://github.com/scooby/pyrsistent-mutable https://github.com/scooby/pyrsistent-mutable
Basically, it's an AST translator that lets you use imperative syntax against immutable types. That is, `x.a = b` becomes the clunky `x = x.set('a', b)`, and it really gets convenient when you have complex structures.
Would it be worth it to look into a babel plugin for Javascript and ImmutableJS?