W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2008

[Bug 5672] Evaluation of treat as

From: <bugzilla@farnsworth.w3.org>
Date: Thu, 01 May 2008 18:28:58 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1JrdWc-0000ZA-0p@farnsworth.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5672





------- Comment #4 from mike@saxonica.com  2008-05-01 18:28 -------
Lazy evaluation of function parameters is an absolutely normal technique in
functional programming languages and is essential for good performance. Users
expect to be able to write a function like

declare function first($seq as item()*) as item() {
  $seq[1]
}

and have it behave the same as if they wrote $seq[1] directly.
Received on Thursday, 1 May 2008 18:29:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:23 UTC