www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Kill implicit joining of adjacent strings

Gary Whatmore:

 I fully agree with this. It's odd to see only few people opposing this,
because the feature has no merit. If the language needs to be overly verbose in
every turn, bearophile could go and use Java instead.

Is adding 1 char every time you use implicit joining of strings in your modules "overly verbose"?
 I find it useful, and I like it. I like to break long strings into smaller  
 ones
 and put each one in one line. I know that you can do that using one single  
 string, but
 some syntax hightlighters don't like it that way.


This string of yours: string someText = "I find it useful, and I like it. I like to break long strings into smaller ones" "and put each one in one line. I know that you can do that using one single string, but" "some syntax hightlighters don't like it that way."; Now becomes: string someText = "I find it useful, and I like it. I like to break long strings into smaller ones" ~ "and put each one in one line. I know that you can do that using one single string, but" ~ "some syntax hightlighters don't like it that way."; Bye, bearophile
Nov 11 2010