3 ms·
Hmm, I don't think I ever consciously recognized this about JavaScript before. Even when I focus on the functional sides by using functions for namespacing, con
by nxn 15y ago
Hmm, I don't think I ever consciously recognized this about JavaScript before. Even when I focus on the functional sides by using functions for namespacing, constructors (I avoid 'new'), scoping, and limiting external access, objects still cooperate nicely and feel natural. This says a lot, because even in F#, which was designed to work well with OOP, mixing the two doesn't seem to produce a nice blend for me.