Templates considered impressive
Andy Valencia
dont at spam.me
Tue Oct 1 13:30:49 UTC 2024
On Tuesday, 1 October 2024 at 11:45:35 UTC, monkyyy wrote:
> On Tuesday, 1 October 2024 at 05:44:16 UTC, H. S. Teoh wrote:
>> why spend the time and effort when you could have just done:
>>
>> ```
>> import std.conv;
>
> theres a bunch of relivent tradeoffs and phoboes doesnt make a
> good set of them
To be fair, although Phobos sometimes has shockingly large code
expansion for modest functions, in this case "123.456".to!double
comes to 27k, which seems quite reasonable, even to this old
1802/6502/8080/z80/PDP-11 coder.
Thanks for the pointers to the numerous ways std.conv can be used!
Andy
More information about the Digitalmars-d-learn
mailing list