Hello Christian, > On 11 Nov 2014, at 9:22 am, Christian Schneider <ch...@die-schneider.net> > wrote: > > About auto adding. How about this: > Inside component() we add the component to a separate list of pending > components in dependency manager. > Then after init we call a method in the manager to finally add all pending > components into the active structure. > In that method we could then also convert from the class with the new syntax > to the existing class. So the changes for the new syntax would have > minimal impact to the rest of the code.
The problem with this approach is that the API can be used outside of the init method as well, so I don’t like adding code that only works in a specific scenario. Greetings, Marcel