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

Re: The real harm is in functions with side effects (W

Subject: Re: The real harm is in functions with side effects (Was: Re:Using Extension Functions - Its Efficiency)
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Mon, 19 Jan 2004 03:08:23 -0800
monads side effects
David Tolpin wrote:

Unfortunately, some functional languages (XSLT included) lack a built-in
support for controlling side-effects.

Haskell has the notion of a Monad class built-into the language and any
programmer simply uses the IO (or any other suitable type) Monad, when
this is necessary.


The only thing is that Monads are not built into the language. IO Monads
are built-in, but, in the same sense as print capabilities are built into
some languages, it does not mean that all functions are built-in. Monads are just continuation passing -- many things are expressed with Monads,
and can be done with any facility with first-order functions.


Monads are as good in Java, Scheme, Ruby, and even in python as they are in Haskell,
the thing XSLT lacks is first-order functions, not Monads.

Hi David,


You have been providing some impressive posts. What do you mean by first-order functions? Do you see it as a failing of XSLT or something that it should not be concerned about?

best,
-Rob


David Tolpin


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.