|
|
|
|
|
by masklinn
3121 days ago
|
|
> Good immutable data-structures are important for big programs though. I'm guessing you mean good in the sense of well-implemented (performant), but I think good in terms of interface is also very important For instance in my experience & opinion Immutable.JS is not very fun to use regardless of its implementation, because the interface does not feel natural for the language (not that the designers can really be faulted, the user-accessible part of the language simply limits what they can do). I think a similar library for Python would have similar issues (due to Python being very statements-oriented which is antithetical to persistent data structures). |
|
It also has the ability to really take any object and attach states to it at whim, including immutability.
I think that’s a better trade off than JS