>>>> "sb" == SL Baur <steve(a)xemacs.org>
writes:
> What do you call "working right"? Rejecting this
regexp looks right
> to me. Did you mean to write `c\+\+'?
sb> I know escaping the plusses works, but it's unintuitive. It's almost
sb> certain that two consecutive plusses in that context are being used to
sb> hunt for C++ support.
sb> If it's going to puke and die anyway, why not filter the regexp through
sb> something that escapes two consecutive plusses?
Being too clever is the road to ruin. 10 years ago, some folks tried
to write `dwim'[1] shells that would correct the user's typos and run
the actual command the user intended. Even the authors of those tools
eventually gave up using them.
Footnotes:
[1] Do What I Mean