The D standard library is built on GC, is that a negative or positive?

torhu torhu at yahoo.com
Wed Dec 14 19:38:51 UTC 2022


On Wednesday, 14 December 2022 at 01:47:29 UTC, Steven 
Schveighoffer wrote:
>
> ```d
> void main() @nogc
> {
>    import std.conv;
>    auto v = "42".to!int;
> }
> ```


I have been wondering why there isn't a basic variation like this 
available:

```d
auto i = "42".toOr!int(-1);
auto s = i.toOr!string(null);
```



More information about the Digitalmars-d mailing list