Another Idea
Posted: Fri Aug 07, 2009 10:36 am
by Carl Ranson >> Fri, 25 Feb 2000 3:01:13 GMT
Just had an idea for a new jade feature.
When creating an abstract class it might be nice if you could nominate certain methods to be automatically overridden in the descendants.
ie you make a generic web page class (say) and all clients are required to reimplement 3 methods to do the work. When you create a subclass, Jade could automatically add these methods for you, which would save the effort of overriding them yourself.
Of course you would still have to fill in the details for each method, so its a fairly minor saving I guess.
It would probably be more useful to have a "reimplement methods" option that gave a multiselect list of existing methods to chose from.
CR
Just had an idea for a new jade feature.
When creating an abstract class it might be nice if you could nominate certain methods to be automatically overridden in the descendants.
ie you make a generic web page class (say) and all clients are required to reimplement 3 methods to do the work. When you create a subclass, Jade could automatically add these methods for you, which would save the effort of overriding them yourself.
Of course you would still have to fill in the details for each method, so its a fairly minor saving I guess.
It would probably be more useful to have a "reimplement methods" option that gave a multiselect list of existing methods to chose from.
CR