2 ms·
Unfortunately Symbols are not that useful when it comes to private properties in classes. A better approach would be to use use weakmaps to have private propert
by aikah 12y ago
Unfortunately Symbols are not that useful when it comes to private properties in classes. A better approach would be to use use weakmaps to have private properties.
The problem with symbols is the absence of symbol literal syntax(along with the fact that one can access symbols through reflection).