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

Re: Assignment no, dynamic scoping si (was: Re: RE: Wi

Subject: Re: Assignment no, dynamic scoping si (was: Re: RE: Wishes for XSL revisions ...
From: Joerg Pietschmann <joerg.pietschmann@xxxxxx>
Date: Thu, 03 Jan 2002 16:50:54 +0100
advantages of dynamic scoping
Gunther Schadow <gunther@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> So, what are the disadvantages of dynamic scoping?

Well, every LISP book i read warns that excessive use
of floating variables and reliance on dynamic binding
will lead to hard to find bugs.
That's exactly what i experienced: hours of hunting down
hard to find bugs originating for example in using a
variable name in a lambda expression fed to someone
else's code where it was used dynamically bound.

Apart from this, language developers went to static
scoping because this makes compilation and many optimisation
techniques easier or even possible.

I don't think the advantages of dynamic scoped variables
are worth the potential trouble. The worst i would have
avoided was writing some moded templates to pass down
parameters to the place where they were needed.

Regards
J.Pietschmann

 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.