Re: Regexps (was Re: Invalid Operating System)

[prev] [thread] [next] [lurker] [Date index for 2006/12/18]

From: peter (Peter da Silva)
Subject: Re: Regexps (was Re: Invalid Operating System)
Date: 19:17 on 18 Dec 2006
> I'm not sure I understand, because what I'm reading doesn't make
> any sense. Are you actually saying that every character should
> have only a single meaning in any possible context?

I'm saying every token should have only a single meaning in any given
context, and that the set of characters delimiting tokens should be
distinct from the set of characters that comprise tokens.

BOTH meanings of "/" in Perl are in the expression context, and one is
a token delimeter and one isn't.

> I don't think you do, because that's not the case even in C.

Yes, the conflict in "a/*b" is hateful.

The difference between C and Perl here is that even Dennis Ritchie doesn't
defend it.

There's stuff above here

Generated at 22:02 on 27 Dec 2006 by mariachi 0.52