renkun-ken / pipeR

Multi-Paradigm Pipeline Implementation
Other
169 stars 39 forks source link

Consider class-based implementation of Pipe object #56

Closed renkun-ken closed 10 years ago

renkun-ken commented 10 years ago

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,

> Pipe(1:10) + 1
<Pipe : integer>
 [1]  2  3  4  5  6  7  8  9 10 11
renkun-ken commented 10 years ago

This should not be supported since overriding $ is very special for most objects.