glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Refactoring


From: Stéphane Magnenat
Subject: Re: [glob2-devel] Refactoring
Date: Wed, 03 May 2006 13:46:52 +0200
User-agent: KMail/1.9.1

On Wednesday 03 May 2006 13:21, Cyrille Dunant wrote:
> > > FormatableString("Hello %s %s").arg("to").arg("you")
> >
> > I'll take this one ^ since I find it more readable...
> >
> > > FormatableString("Hello %s %s")("to")("you")
>
> You could have both :)
>
> I wonder, on a general note, is having alternative syntaxes available a
> good or bad thing ?

I would say slightly bad, as it increase the amount of known thing required to 
understand the code.

I prefer the .arg() version, using %0, %1 (not %s but I think Nuage just wrote 
this by mistake) as argument.

Steph




reply via email to

[Prev in Thread] Current Thread [Next in Thread]