mu-inheritance
mu(inheritance) : smal(lest?) inheritance javascript framework
µ(inheritance) allows :
- inheritance between function (class)
- multi-inheritance (but not recommended ;-))
- to declare and use a constructor otherwise, you have an abstract class (unable to instantiate)
- calling parent constructor (constructor name = function (class) name)
- to test type of an object
- using private variables without side effects with inheritance
This source code (<30 lines of code) is largely inspired by those books :
- Javascript patterns - Stoyan Stefanov
- JavaScript : the Good Parts - Douglas Crockford
- Javascript cookbook - Shelley Powers
- Pragmatic Guide to JavaScript - Christophe Porteneuve
I was guided by three rules :
- module pattern
- functional inheritance pattern
- no prototype
and a "desire" : each class has a constructor (and be able to call her parent's constructor).
Explanation :


Recent comments
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago