[racket] Some design "whys" of regexps in Racket

From: Eli Barzilay (eli at barzilay.org)
Date: Sat Jun 4 00:09:15 EDT 2011

15 minutes ago, Rodolfo Carvalho wrote:
> On Sat, Jun 4, 2011 at 00:40, Eli Barzilay <eli at barzilay.org> wrote:
> > [...]
> >
> > If you get the impression that I dislike what python does with
> > quoting, then that would be a correct one...
> 
> You made that enough clear.

Sorry, I didn't mean to make it sound like flaming.  I just spent a
good amount of time on various quoting facilities (and ended up with
the scribble syntax which directly deals with this issue).


> Consistent, composable, clear, easy to explain.

Right.  The only thing that I'd change here is that a design that is
easy to explain is one that is consistent etc.


10 minutes ago, Rodolfo Carvalho wrote:
> On Sat, Jun 4, 2011 at 00:50, Eli Barzilay <eli at barzilay.org> wrote:
> >  >>> r"foo\"
> >  [...]
> >  SyntaxError: EOL while scanning string literal
> >
> Yep! Inconsistent and error-prone!

[Something that would worry me more is not having such an
inconsistency at the implementation level -- it's the danger of
programmers ending up making mistakes because of it.]

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.