I often prefer writing non-trivial SQL as s-expressions (using Ryan's
`sql` package).

I feel the same way about non-trivial regular expressions, and often
use the `rx` macro in Emacs Lisp.


In Racket, I tend not to write super complicated regular expressions.
For example, I started to write a markdown parser that way but...
um... yeah. I ended up using `parsack`.

When I do use regexps in Racket, I almost always use them with `match`
and the `pregexp` pattern, to bind the groups to identifiers.


There is some space between trivial regexps and a full/"real" parser.
Something like the `rx` macro, and it's also a match pattern, is
something I could imagine using.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to