std.conv:to that does not throw?

Kyle Ingraham kyle at kyleingraham.com
Fri Jan 31 22:45:55 UTC 2025


On Thursday, 30 January 2025 at 04:44:02 UTC, Jonathan M Davis 
wrote:
> What we really need is something like tryTo that returns a 
> Nullable which has no value when the conversion fails, and then 
> preferably, tryTo would share its implementation with to

I like a Nullable return much more than what I presented. I’ll 
have a look at how hard it might be to throw that together.


More information about the Digitalmars-d-learn mailing list