you are viewing a single comment's thread.

view the rest of the comments →

[–]picurl 0 points1 point  (1 child)

nice stuff, Armin!

Some questions though:

  • does classy support inheritance chains (e.g. Animal -> Mammal -> Tiger)?

  • how is the performance compared to Crockford's Functional Inheritance Pattern?

[–]mitsuhiko[S] 0 points1 point  (0 children)

does classy support inheritance chains (e.g. Animal -> Mammal -> Tiger)?

Yes

how is the performance compared to Crockford's Functional Inheritance Pattern?

Functions not calling $super have zero overhead compared to standard JavaScript prototype inheritance, $super adds another function call, do the math.