2 ms·
Even better. Or sealed if the usecase applies.
by plmpsu 4y ago
Even better.
Or sealed if the usecase applies.
- LecroJS 4y agoNewbie 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.