Kill implicit joining of adjacent strings

bearophile bearophileHUGS at lycos.com
Thu Nov 11 05:34:34 PST 2010


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


More information about the Digitalmars-d mailing list