[racket] Some design "whys" of regexps in Racket
An hour ago, Jens Axel Søgaard wrote:
> 2011/6/4 Rodolfo Carvalho <rhcarvalho at gmail.com>:
> > Hello,
> > I'm curious about 2 design decisions made:
> > 1) Why do I have to escape things like "\d{2}" -> "\\d{2}"?
>
> You can actually avoid escaping if you use here strings.
> See the example below.
The main problem with here strings is that they're too literal,
forcing you to break indentation. The scribble syntax deals with this
in a much better way.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!