re: Hiding details in JavaScript classes with symbols VIEW POST


Cool concept, I didn't know symbols had made their way into JS. Shame you have to explicitly invoke them with a constructor and there isn't some sugar like in ruby / scala


WRT to data hiding encapsulation, not sure if you've seen the draft spec for private properties / methods. The syntax is ugly, but nice to finally get it in.

code of conduct - report abuse