Steven Schveighoffer Wrote:

> On Thu, 11 Nov 2010 08:26:40 -0500, Gary Whatmore <n...@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.

Reply via email to