[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

How much laziness is permitted?

Florent Georges lists at fgeorges.org
Wed Mar 11 17:34:39 PST 2009


  How much laziness is permitted?
John Snelson wrote:

  John,

> As it turns out, try/catch is actually a blocking operation
> on lazy evaluation. If a lazily evaluated expression inside
> a try/catch block returns (1, 2, 3) but then raises an
> error, the implementation effectively needs to
> "recall" the values (1, 2, 3) and instead return
> the value of the catch expression. Since most lazy
> implementations won't have the ability to
> "recall" values already returned, this means they
> can't return any values until expression evaluation has
> terminated - in other words, they need to evaluate eagerly.

  I have some difficulties understanding the problem.  Could you provide me with a little sample or pseudo code showing such a situation?

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/






















      



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-2007 All Rights Reserved.