4 ms·
Right, but the burden is on the programmer to ensure those types. If the stream composition is of simple things, like: cat some.txt | sort | uniq > yay.txt
by ixmatus 13y ago
Right, but the burden is on the programmer to ensure those types. If the stream composition is of simple things, like:
cat some.txt | sort | uniq > yay.txt
Then it isn't a problem - it's obvious and simple, but I think there will be difficulties as the programs get larger and type-level awareness occupies more space in the programmer's brain vs. it being handled by the compiler...
- jkrems 13y agoI didn't say loose/dynamic typing would not put the burden on the programmer to ensure the types. And it definitely has it's problems. I just don't think that this is specific to streams, it's true for every kind of composition.
- gcb0 13y agointeresting example. the fact you know you have to call sort before uniq already shows that even with plain gnu unix util the user must know what he is doing.