Why Phobos is cool

Adam D. Ruppe destructionator at gmail.com
Wed Jul 1 14:10:46 UTC 2020


On Wednesday, 1 July 2020 at 04:13:15 UTC, Clarice wrote:
> And so that this post is somewhat on-topic, I also like a 
> beefier stdlib.

I wish we had more interfaces and UDAs in there.

Today for day job work, I need to do a generic serialize function 
that can handle std.datetime. It would be very cool if it already 
worked, if there was a `void serialize(ISerializer)` already 
there, and/or a `@serializable` attribute.

The stdlib doesn't need to implement all the things, but having 
the interface means it would be easy to reuse all these things 
without writing as many special-purpose adapters.


More information about the Digitalmars-d mailing list