0

what's the difference between the coffeescript 'extends' and '@extend'? Extend is for inheritance but then is @extend for a mixin, but you only get one object you can mix in?

ABCD.ca
  • 2,365
  • 3
  • 32
  • 24
  • Because extends is not available in javascript. Same thing for Backbone. If a framework is meant for coffeescript only then it should be thrown in a garbage ... – mpm Apr 23 '13 at 22:19
  • Spoke to a colleague, seems that @extend is not for inheritance, it's about a mixin – enabling the addition of members from another object without inheritance. Furhtermore, coffeescript's 'extends' is simply a nicer looking semantic for what does actually exist in javascript – prototypal inheritance. – ABCD.ca Apr 24 '13 at 04:48

1 Answers1

2

@extend is not for inheritance, it's about a mixin – enabling the addition of members from another object without inheritance

ABCD.ca
  • 2,365
  • 3
  • 32
  • 24