[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSLT 2.0: Are arguments to functions evaluated ea

Subject: RE: XSLT 2.0: Are arguments to functions evaluated eagerly or lazily?
From: Owen Rees <owen.rees@xxxxxx>
Date: Wed, 18 Jul 2007 12:40:17 +0100
RE:  XSLT 2.0: Are arguments to functions evaluated  ea
--On Wednesday, July 18, 2007 07:30:13 PM +0900 Justin Johansson wrote:

LISP has two such functions 'cond' and 'if' which do the same thing as my
two examples.

In Common Lisp 'cond' is a macro and 'if' is a "special form". If you wanted to write either as a function, you would have to write the arguments to the invocation as closures to prevent them being evaluated before the function is called. It also means that you can't pass 'cond' or 'if' as the function argument to 'funcall' or 'apply'.


--
Owen Rees
========================================================
Hewlett-Packard Limited.   Registered No: 690597 England
Registered Office:  Cain Road, Bracknell, Berks RG12 1HN

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.