Skip to content
Prev 31714 / 63424 Next

question

On Sat, Mar 7, 2009 at 11:37 AM, Wacek Kusnierczyk
<Waclaw.Marcin.Kusnierczyk at idi.ntnu.no> wrote:
I've provided an argument against it and no one has provided one
for it. The so-called identical code Ivo showed was not identical
and, in fact, was flawed.  Your first/last example could be
written:

f <- function() letters
L <- structure(f()[1:2], names = c("first", "last"))

or one could define a function to do that without having
to modify the language.   Given the relative infrequency
of this it hardly seems to merit a language feature.