3 ms·
What bugs me about the class syntax more than anything is that it encourages prototype classes, which in my humble opinion, are just worse than the Crockford mo
by dlbucci 9y ago
What bugs me about the class syntax more than anything is that it encourages prototype classes, which in my humble opinion, are just worse than the Crockford module pattern. C Modules solve this/binding issues, and give you privacy. Maybe they use more memory (in theory), but I never thought that was a great argument unless you actually measure usage and it's noticeably worse. You're basically creating those functions anyway when you call bind, so I wouldn't be surprised if there's not a big effect for most applications.