3 ms·
Newbie OO q: What’s the benefit/use case of sealing or making an object final? My experience is in javascript so I wonder why I’d ever need something like Objec
by LecroJS 4y ago
Newbie OO q: What’s the benefit/use case of sealing or making an object final? My experience is in javascript so I wonder why I’d ever need something like Object.seal or Object.freeze. Is it really that difficult to maintain object instances that do not change after some point?
- PawBer 4y agoIt's just a tool to enforce the hierarchy in code. Once the codebase gets big it's hard to remember all the details about your API.