[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Haskell programmer's rant about xslt

Subject: Re: [xsl] Haskell programmer's rant about xslt
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Mon, 16 Apr 2012 21:17:42 +0100

On 16/04/2012 20:58, Max Toro wrote:
"The fact that you can't know what any single line of code does
without reviewing every other line in the program makes this language
an abomination. "

Yes, I suspect it's a complaint about precedence-based pattern matching; a technique with a long history in text processing, all the way back to Snobol, but one that makes some programmers uncomfortable because (as with decision tables or logic programming) they can't always predict what their own code will produce. Which is actually one of its strengths. I'm constantly surprised and delighted by the output of the Saxon optimizer, which has similar characteristics.

Michael Kay

Current Thread