3 ms·
Interesting, thanks for sharing. I took a look at your list of links recently, actually – it was helpful. I'm considering syntax-level support for `immutabilit
by rattray 10y ago
Interesting, thanks for sharing. I took a look at your list of links recently, actually – it was helpful.
I'm considering syntax-level support for `immutability-helper`, which seems like the best all-around solution aside from its syntax. This is for a JS Dialect I'm building called LightScript[0].
Would look something like:
store.people[0].friends[0].name~~set("Alice")
which would compile to:
update(store, {
people: {
[0]: {
friends: {
[0]: {
name: { $set: "Alice" }
}
}
}
}
})
Would love thoughts/feedback (here or on the project Gitter[1])
[0] http://lightscript.org http://lightscript.org
[1] https://gitter.im/lightscript/Lobby https://gitter.im/lightscript/Lobby
- helb 10y agoOne thing i like about immutability-helper is their mongo-style syntax. Yeah, MongoDB might kinda suck for multiple reasons, but the query syntax is quite nice IMO.