News for hackers. Stuff that matters.
Re:What science says about naming in programming by fiddlerwoaroof on Tuesday January 10, 2017 @08:41PM (#13371058)
Incidentally, I've been using TXR a bit for text-processing recently, it's generally been pretty nice once I've figured out what exactly needs to be done to get the matching to work, but the various failure modes for the pattern language aren't very intuitive.
Re:What science says about naming in programming by kazinator on Tuesday January 10, 2017 @11:24PM (#13371732)
I don't disagree. If debugging that sort of thing were intuitive, we'd all be coding in Prolog. It's like an invisible "if" hidden in every statement which branches elsewhere if there is no match. @(assert) can help; if you know that something that follows must match, you get an exception if it doesn't. I used asserts in the man page checker:

http://www.kylheku.com/cgit/txr/tree/checkman.txr