The JADE 2022 release meets tomorrow’s business demands.
HistoricalComments
Ben Butterfield 29/09/2017 3:17:41 AM
Parameterised constructors would be number one on my request list. It is a clear and dependable way to express the dependencies in a class. I.e. The compiler would not allow the creation of an instance of a class without supplying the dependencies in the constructor. As the original post states there is currently a reliance on initialize methods, there is also another step that is needed to check the client has called this method, with parameterised constructors the compiler enforces this. These should accept the same parameters as "normal" Jade Methods. They should support parameters of type JadeInterface to allow varying the behaviour of the class depending on what is passed to it - polymorphism by composition. There is also the case that they would be the easiest and clearest way to create immutable objects. |