On 10/14/10 13:46 CDT, Denis Koroskin wrote:
On Thu, 14 Oct 2010 22:21:37 +0400, Steven Schveighoffer
<schvei...@yahoo.com> wrote:
What's point of having multiple types that only differ with read
signature? When would you prefer Stream!(byte) over Stream!(ubyte) or
Stream!(char)? What's wrong with an adapter that allows you to read any
kind of data off the stream?

Why do you need to use a Stream directly for reading an array of e.g.
ints off the stream? Save your time, don't write duplicated code. Use an
adapter specially provided for that purpose.

Good point. Perhaps indeed it's best to only deal with bytes and characters at transport level.

Andrei

Reply via email to