Streaming transport interfaces: input

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Oct 14 10:20:37 PDT 2010


On 10/14/2010 12:15 PM, anon wrote:
> I can't understand why we need binary vs. text modes. Seems to me a
> silly design decision from the old days when we used 7-bit terminals
> or something. This always complicates the APIs for no reason.

A variety of Internet protocols are text-based. Also, for example I use 
a text console everyday.

> I'd like to see a two layer design: - lower UNTYPED layer that deals
> with transporting bits and bytes and deals with lower level concerns
> like byte order. - higher level extend-able TYPED layer with
> formatters/encoders.

This would be the untyped lower level layer.

Andrei


More information about the Digitalmars-d mailing list