When will D get this feature?

bearophile bearophileHUGS at lycos.com
Tue Oct 7 10:05:51 PDT 2008


Ary Borenszweig:
> Who is using q{} and \n in real code? Why that was introduced? What was 
> the problem with normal string literals?

I don't understand the usefulness of \n instead of '\n', but I think the usefulness of q{} was to have a string that is ast-controlled that the editors don't color uniformly as a string. So I think \n can be removed, but q{} have a purpose, even if they may deserve a better syntax.

Bye,
bearophile



More information about the Digitalmars-d mailing list