From pgilbert@bank-banque-canada.ca  Tue Jun 23 15:45:43 1998
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
Date: Tue, 23 Jun 1998 10:45:43 -0400
Subject: redundant names
Message-ID: <98Jun23.110915edt.13445@mailgate.bank-banque-canada.ca>

I don't often suggest an incompatibility with S, but I think this behavior in S
and R is very dangerous:

> c(list(a="a"), b=2, a=1)$a
[1] "a"
> c(list(a="a"), b=2, a=1)
$a
[1] "a"
$b
[1] 2
$a
[1] 1

I think this is a case where we may want incompatibility with S in order to
enforce good programming and catch unintentional errors. I cannot think of a
case
where I would want a list with two elements having the same name. I would
suggest  eliminating all but the first of any redundant names (and issuing a
warning?).

Paul Gilbert



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


redundant names
Paul Gilbert