[asterisk-dev] Re: comments on this one ? (macros for parsing config
file ?)
Tony Mountifield
tony at softins.clara.co.uk
Wed Nov 15 14:47:22 MST 2006
In article <200611151244.19357.tilghman at mail.jeffandtilghman.com>,
Tilghman Lesher <tilghman at mail.jeffandtilghman.com> wrote:
> On Wednesday 15 November 2006 12:32, Luigi Rizzo wrote:
> > > I think they make this part of the code a lot more readable and
> > > consistent and less error prone, especially because we can do the
> > > same parsing on fields of the same type.
>
> While it certainly makes the code smaller, I don't find it easier to
> read, nor do I think it's less error-prone. I think it's actually more
> error prone, as it's difficult to read what the code is actually doing.
> The problem is that this translation to macros makes the code
> cryptic. I'd almost compare it to using macros for the sake of using
> macros, not for any legitimate benefit.
I agree. When trying to understand code with lots of macros, I spend
most of my time looking back at the macro definitions to understand what
is actually going on!
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-dev
mailing list