3 ms·
> OOP with prototypes is dreadfull, from a "clean code" perspective. > I think the Python way is the simplest one. FYI, Python actually does use prototypical
by chimeracoder 11y ago
> OOP with prototypes is dreadfull, from a "clean code" perspective.
> I think the Python way is the simplest one.
FYI, Python actually does use prototypical inheritance under the hood. The difference between Python and ES5 is that Python uses the "class" keyword in such a way that you don't actually need to know about prototypical inheritance in order to use Python unless you're doing some really funky work with Python's metaclasses.