by ArbitraryCrow · 13y ago · 0 comments
Wouldn't it better if there were constructs built into the language to provide separate namespaces, in an obvious and coherent fashion?
I thought about the namespaces thing and it sounds like a better idea than encapsulating stuff into anonymous functions so I made a little boilerplate that implement basic OOP features:
Only thing that I think smells a bit is having to keep a reference to 'this' of the main object.