s-news
[Top] [All Lists]

Re: [S] scope rules

To: <daven@llnl.gov>
Subject: Re: [S] scope rules
From: Douglas Bates <bates@stat.wisc.edu>
Date: 25 Jun 1998 14:36:02 -0500
Cc: "s-news" <s-news@wubios.wustl.edu>
In-reply-to: "David Nelson"'s message of Thu, 25 Jun 1998 12:17:35 -0700
References: <000001bda06d$e89b1940$4a967380@statman.llnl.gov>
Sender: owner-s-news@wubios.wustl.edu
"David Nelson" <daven@llnl.gov> writes:

> Coming from the LISP community, I've always found the scoping rules for S to
> be quaint in the extreme, and a constant source of irritation to me.  I have
> always wondered if the developers of S were aware of the research at the
> time on lexical scoping, but deliberately chose not to incorporate modern
> scoping techniques because they would conflict in some way with S's lazy
> evaluation and delayed commitment paradigm. Or, were they just unaware of it
> and were trapped in old-fashioned FORTRAN thinking?
> 
> In any event, there is no conflict between structured programming,
> object-oriented programming, and lexical scoping (see, e.g, the work on
> Common LISP Object System (CLOS)). And the scoping rules surely were not
> used to enforce "security".

The R language, which its creators characterized as "not unlike S",
uses lexical scoping.  See
            http://www.ci.tuwien.ac.at/R/doc/misc/lexical.tex
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>