Are Delimited strings and HereDoc strings just here to suck ?

Philippe Sigaud via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 11 13:50:34 PDT 2014


On Mon, Aug 11, 2014 at 10:09 PM, H. S. Teoh via Digitalmars-d-learn
<digitalmars-d-learn at puremagic.com> wrote:
> On Mon, Aug 11, 2014 at 07:47:44PM +0000, Klaus via Digitalmars-d-learn wrote:
>> I mean when writing a D lexer, you necessarly reach the moment when
>> you think:
>>
>> "Oh no! is this feature just here to suck ?"


> The crazy variety of ways to write string literals in D, OTOH, *is* a
> bit over the top, as I found out myself when I also tried writing a D
> lexer.  :-P

Out of curiosity, how does a lexer deal with heredocs? It's a sort
of... user-defined token, right?


More information about the Digitalmars-d-learn mailing list