When will D get this feature?
KennyTM~
kennytm at gmail.com
Tue Oct 7 09:20:04 PDT 2008
Andrei Alexandrescu wrote:
> KennyTM~ wrote:
>> Jarrett Billingsley wrote:
>>> On Tue, Oct 7, 2008 at 9:56 AM, KennyTM~ <kennytm at gmail.com> wrote:
>>>> Benji Smith wrote:
>>>>> http://www.xs4all.nl/~weegen/eelis/analogliterals.xhtml
>>>>>
>>>>> ;-)
>>>>>
>>>>> --benji
>>>> Because of the \ in the source code D can't parse this even if all the
>>>> template stuffs are translated.
>>>>
>>>> Unless Walter clarifies what \ means outside a string (currently \n
>>>> in the
>>>> source code is directly translated to "\n". So
>>>>
>>>> writefln("Hello" \n "world");
>>>>
>>>> is, em, valid.)
>>>>
>>>
>>> Erm, it is defined. See "escape strings" here:
>>> http://www.digitalmars.com/d/1.0/lex.html
>>
>> Oh I see.
>
> In wake of the recent comments on q{string}, I have the feeling this is
> a mistake of the same proportion as q{string}. It essentially hijacks
> "\" for pretty much all uses (lambdas were an idea) for the sake of a
> feature that is gratuitous and useless.
>
> Andrei
Hmm, sounds like there'll be lots of change after Templ{} and immutable :D
I'd used `....`, but never q{...}
More information about the Digitalmars-d
mailing list