[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] Create a special purpose programming language, inXML, using state transitions
- From: David Lee <dlee@calldei.com>
- To: Michael Kay <mike@saxonica.com>
- Date: Fri, 18 Oct 2013 14:51:45 +0000
------------ Micheal
Sounds to me like you have never written in a language like Fortran or Assembler!
apply-templates is essentially a polymorphic subroutine call. A subroutine call is a "GOTO X AND THEN COME BACK", which is fundamentally different from a plain GOTO X. Subroutine calls give you the basic capability of abstraction that's essential to writing complex programs, because the caller doesn't have to worry about the detail of the callee.
>
Thank you ! Ok Its been *so long* since I wrote in Fortran and Assembler that I conveniently forgot the COME BACK part.
So yes huge difference. Still doesnt make my head hurt less though ... because unlike most polymorphic calls,
a typical XSLT (to my limited experience) is more like a single method call with 10000 overloads.
so to me I see "CALL RANDOM(1 to 10000 )" .... :)
There MUST be a way of making more sense of it all.
-David
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]