DEV Community

Discussion on: ECMAScript 2019 and beyond...

Collapse
weswedding profile image
Weston Wedding

This is my first time seeing that hash symbol for private fields and...
... huh. I really don't like it at first glance! It's kinda ugly and unfamiliar.

However, having an unambiguous identifier built right into the name is pretty cool! No need to adopt special naming schemes to remind yourself if it's private data or not; no special knowledge that newcomers have to learn to navigate and understand like "it's common to use underscores to indicate private fields"