Skip to content
Prev 51720 / 63424 Next

for in r-devel

Thanks for pointing this out. The commit you cite was reverted a couple
days later, because we are still thinking about how it should work. While
it appears Date would benefit, weird things happen e.g. with POSIXlt and
other data structures in the wild. This is due to inconsistency in the
behaviors of length() and [[() methods. One thought is introducing a
generic that coerces to something with consistent behavior, e.g.
iterable(). We were even thinking that an iterable might be allowed to
return NA for length, in which case it would need to support methods like
next() and hasNext(). Ideas welcome.

Michael





On Fri, Mar 18, 2016 at 7:25 AM, Gabor Grothendieck <ggrothendieck at gmail.com