Re:JavaScript TC39 implementing hashmark private class fields
by just_astounded on Thursday August 03, 2017 @02:48PM
(#14922516)
Don't we already have solutions (closures/WeakMap) for hard encapsulation? Seems like '#' just pollutes the language and isn't really needed.
[ Parent
| on HN ]
Re:JavaScript TC39 implementing hashmark private class fields
by pitaj on Thursday August 03, 2017 @03:28PM
(#14922933)
There are solutions, but people want a syntax solution for it. Personally, I think that private instance properties should be a separate proposal from static and instance properties. That way, people could decide if they want some of it, or all of it.