std.serialization: pre-voting review / discussion

Dmitry Olshansky dmitry.olsh at gmail.com
Mon Aug 19 12:03:04 PDT 2013


19-Aug-2013 22:05, Johannes Pfau пишет:
> Am Mon, 19 Aug 2013 16:21:44 +0200
> schrieb "Tyler Jameson Little" <beatgammit at gmail.com>:
>
>
> Another point is that "serialize" in the above example could be
> renamed to "put". This way Serializer would itself be an OutputRange
> which allows stuff like [1,2,3,4,5].stride(2).take(2).copy(archive);
>

+1
I totally expect serializer to be a sink.

> Then serialize could also accept InputRanges to allow this:
> archive.serialize([1,2,3,4,5].stride(2).take(2));
> However, this use case is already covered by using copy so it would just
> be for convenience.
>


-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list