Force model to be object and always be immutable?
See original GitHub issue@jbucaran what you think about the model to be object and freeze it, using Object.freeze
or deep-freeze
?
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
If immutable objects are good, why do people keep creating ...
Both mutable and immutable objects have their own uses, pros and cons. Immutable objects do indeed make life simpler in many cases.
Read more >Reading 9: Mutability & Immutability - MIT
Recall from Basic Java when we discussed snapshot diagrams that some objects are immutable: once created, they always represent the same value.
Read more >Immutable Objects Are Worth the Effort | by Dan Goslen
First, An Embarrassing Story · Immutability Has Stronger State Guarantees · Immutable Objects Are Easier To Understand · Immutable Objects Force ...
Read more >Four Ways to Immutability in JavaScript - DEV Community
Abstract. This article presents four different techniques to immutably update data structures in JavaScript:.
Read more >Make immutable Java object - Stack Overflow
Why do we create immutable objects? Immutable objects are simply objects whose state (the object's data) cannot change after construction.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@charlike yes @jbucaran is correct,
hyperapp-freeze
will get cleaned up after thehyperapp-logger
refactor is complete.There’s a mixin solution for this: https://github.com/okwolf/hyperapp-freeze