Does somebody know how to make private, non-static members in CoffeeScript? Currently I’m doing this, which just uses a public variable starting with an underscore to clarify that it shouldn’t be used outside of the class:
class Thing extends EventEmitter
constructor: (@_name) ->
getName: -> @_name
Putting the variable in the class makes it a static member, but how can I make it non-static? Is it even possible without getting “fancy”?
Sad to say, you’d have to be fancy.
Remember, “It’s just JavaScript.”