[Rd] Incorrect vector recycling in rare circumstance

Poole, Geoffrey gpoo|e @end|ng |rom mont@n@@edu
Thu Jan 29 23:35:56 CET 2026


I will add one thing...

The alternate `mapply-like` behavior might not be that hard to implement.  Rather than each sub-expression "recycling" vectors independently, the programming language could specify that vectors are "precycled" -- expanded to full and equal length before being sending to the expressions.

I'm not saying this is a good idea... that ship sailed a long time ago and undoing it isn't worth the effort.  Just that, conceptually, it's not that hard to enforce a fixed recycling behavior without needing to have `+` know about `c` to calculate:  `/`(`+`(a,b), c).

-Geoff

	[[alternative HTML version deleted]]



More information about the R-devel mailing list