std.conv:to that does not throw?

Kyle Ingraham kyle at kyleingraham.com
Thu Jan 30 02:55:42 UTC 2025


On Thursday, 30 January 2025 at 02:08:49 UTC, Jonathan M Davis 
wrote:
> Unfortunately, there isn't currently a function like 
> std.conv.to which does not throw. It's been suggested before, 
> but it's never been implemented (and would probably require 
> quite a bit of refactoring if we want to avoid code 
> duplication). It's definitely on the todo list for the next 
> major version of Phobos, but we've never added such a function 
> to the current version.

Thanks very much Jonathan. That confirms what I thought (but 
really hoped wasn't the case). I'll take a look at what it might 
take to modify std.conv.to.


More information about the Digitalmars-d-learn mailing list