this is a german Web-Mirror of MHONARC.ORG powered by Domainunion AG

[Top] [All Lists]

Re: [xsl] [Musing] User Preference for Functional Programming

2013-07-10 12:55:07
On Wed, 2013-07-10 at 10:32 -0700, Hank Ratzesberger wrote:

I am only conversing here, I hope not to take your time if you are not

Do not worry: you pose an interesting and useful question.




And a colleague spoke to me and said, 'Well, I much prefer action
words, they explain what is happening'

Well, your first example is much close to a modern programming idiom, so
it will have a high comfort factor. Your second, by the way, would be
greatly improved with spaces around the = sign.

There are two intermingled questions here:
. which syntax is preferred
. which semantics are preferred.

But the two approaches are also not mutually exclusive. For example,
what if you write,


Now there's a declarative part embedded in a procedural part. You could
go one step further,

xpath("/award/awardID/awardContractID") .
               setModNumber( xpath("FpdsInfo:modNum") );

Both the .set/.get and the XPath syntx are domain-specific languages,
but people come to them with different expectations.


Liam Quin - XML Activity Lead, W3C,
Pictures from old books:
Ankh: freenode/#xml

XSL-List info and archive:
To unsubscribe, go to:
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>