Autor: Jonathan Sambrook Data: Para: exim-dev Assunto: Re: [exim-dev] Multiline macros or abstract objects?
On Thu, 2005-09-15 at 11:43 +0200, Michael Haardt wrote: > Hello,
>
> I saw the patch and although I see its use, I wonder:
>
> How about a little object orientation? Specifically, I could imagine
> abstract routers and transports, and having real routers (transports etc.)
> extending them.
>
> Currently, there are default settings for all routers in Exim, so
> in a way you could say that routers extend an abstract super router.
> Those abstract super routers extend the generic abstract super router.
> There is already some OO in there.
>
> Macros are tempting, but work on a textual level and usually bite back,
> if you get too fancy.
>
> What do you think?
OO sounds good too, but the limitation of having to derive from a common
base isn't appropriate in all snippet reuse situations.