4 ms·
I can't hear about regular expressions without wanting to tell anybody that loves it so much to try Haskell. Really. Monadic parsers are so much better, regula
by marcosdumay 11y ago
I can't hear about regular expressions without wanting to tell anybody that loves it so much to try Haskell. Really.
Monadic parsers are so much better, regular expressions become pointless. I've written an entire email server, with literally thousands of lines of parsers, and the only place I've used regular expressions is for accepting them from the user, in a configuration file.
- AnimalMuppet 11y agoWell... I've used regular expressions as arguments to grep much more often than I've programmed them. But I used them in grep quite often as part of a programming task. It's like an editor. I think the article is saying "you need a good editor, and to learn to use it well", and I think you're saying "Haskell makes it really handy to write an editor!" That could be true, but it's a bit tangential to the article's point (presuming that I understand both of you correctly).