3 ms·
> it's enormously powerful to be able to drop one segment of a pipe-chain and look at the output. But having more complex objects instead of text doesn't stop
by danssig 16y ago
> it's enormously powerful to be able to drop one segment of a pipe-chain and look at the output.
But having more complex objects instead of text doesn't stop us from having that. The objects just need to have some kind of to-string method that the shell uses.
- wahnfrieden 16y agoIt does hinder you, since string serializations will usually be an incomplete (or worse, inconsistent) view of an object. With Unix pipes, their string serialization is all that it is.
- rtaycher 16y agobesides the toString if we could get a decent amount of the objects to be public we might have simpler formatting rules.