Kill implicit joining of adjacent strings
Gary Whatmore
no at spam.sp
Thu Nov 11 05:58:12 PST 2010
Steven Schveighoffer Wrote:
> On Thu, 11 Nov 2010 08:26:40 -0500, Gary Whatmore <no at spam.sp> wrote:
> > Multiline strings have traditionally required stupid hacks. D might be
> > the only string oriented language with so many useful string literals.
> > Very useful in string processing.
>
> In this case, it's not a hack, it fits precisely within the definition of
> the language. It's like saying:
>
> 1 +
> 2
>
> is a 'hack' to get multi-line addition working. How many times have you
> written:
>
> if((condition1 && condition2) ||
> condition3 ||
> condition4 ||
> ...)
>
> To keep your sanity when writing complex if statements? Have you ever
> felt that adding those pesky || at the end of each line was a 'hack'?
> This is exactly the same thing.
Good point. I got it now.
More information about the Digitalmars-d
mailing list