This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Here is a proposal for minimalist JavaScript classes(?), that does not | |
// introduces any additional syntax to the language, instead it standardizes | |
// approach already used by majority of JS frameworks today. | |
// !!! What is a PROBLEM!!! | |
function Dog(name) { | |
// Classes are for creating instances, calling them without `new` changes | |
// behavior, which in majority cases you need to handle, so you end up with | |
// additional boilerplate. |