Closed renkun-ken closed 10 years ago
Consider the implementation of Pipe object that prepends Pipe class to the value for which $ is defined for first-argument piping.
Pipe
$
This allows many direct operations on the object, for example,
> Pipe(1:10) + 1 <Pipe : integer> [1] 2 3 4 5 6 7 8 9 10 11
This should not be supported since overriding $ is very special for most objects.
Consider the implementation of Pipe object that prepends
Pipe
class to the value for which$
is defined for first-argument piping.This allows many direct operations on the object, for example,