Skip to content
Prev 326134 / 398502 Next

Lexical scoping is not what I expect

Dear Duncan,

I think that it's reasonable to make a distinction between symbols
representing functions and those representing built-in constants, even if,
as in the case of pi and T (and letters, etc.), the latter are technically
implemented as variables. 

Although it may be natural to use the variable T for temperature or F for an
F-value (or pi for what?), nothing fundamental is gained by the ability to
do so (one could use temp or fvalue or Pi), while in the case of a function,
one can consciously mask, e.g., the standard mean(). I'm not sure that it's
generally wise for users to redefine functions like mean(), but I can see a
use for the ability to do that.

Please don't feel the need to reply if you don't wish to -- this isn't in my
opinion an important issue.

Best,
 John

Thread (27 messages)

David Kulp Lexical scoping is not what I expect Jun 24 Rui Barradas Lexical scoping is not what I expect Jun 24 Gabor Grothendieck Lexical scoping is not what I expect Jun 24 arun Lexical scoping is not what I expect Jun 24 Rolf Turner Lexical scoping is not what I expect Jun 24 Marc Schwartz Lexical scoping is not what I expect Jun 24 Duncan Murdoch Lexical scoping is not what I expect Jun 24 David Kulp Lexical scoping is not what I expect Jun 24 William Dunlap Lexical scoping is not what I expect Jun 24 Duncan Murdoch Lexical scoping is not what I expect Jun 25 S Ellison Lexical scoping is not what I expect Jun 26 Duncan Murdoch Lexical scoping is not what I expect Jun 26 Hadley Wickham Lexical scoping is not what I expect Jun 27 S Ellison Lexical scoping is not what I expect Jun 28 Duncan Murdoch Lexical scoping is not what I expect Jun 28 John Fox Lexical scoping is not what I expect Jun 28 Duncan Murdoch Lexical scoping is not what I expect Jun 28 Brian Ripley Lexical scoping is not what I expect Jun 28 John Fox Lexical scoping is not what I expect Jun 28 John Fox Lexical scoping is not what I expect Jun 28 Rolf Turner Lexical scoping is not what I expect Jun 28 Yihui Xie Lexical scoping is not what I expect Jun 28 William Dunlap Lexical scoping is not what I expect Jun 29 Greg Snow Lexical scoping is not what I expect Jun 29 Rolf Turner Lexical scoping is not what I expect Jun 30 Duncan Murdoch Lexical scoping is not what I expect Jun 30 David Winsemius Lexical scoping is not what I expect Jun 30