[Issue 4532] std.string.format, std.stream methods, etc. still use the old doFormat instead of formattedWrite
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 20 14:48:08 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4532
--- Comment #14 from bearophile_hugs at eml.cc 2012-04-20 14:49:05 PDT ---
I've taken a look here:
https://github.com/D-Programming-Language/phobos/pull/231
Kenji Hara sasy:
>The same name with core.stdc.sprintf is very confusing. And std.string.format returns new string, but core.stdc.sprintf write the formatted string into specified buffer. The two behaviors are quite different.<
Andrei Alexandrescu says:
>There's no problem with core.stdc.sprintf bearing the same name as std.format.sprintf. Phobos has had such duplicate names for years without a problem.<
I agree that Phobos has some name clashes. But I don't agree it's a good thing.
It should be avoided if possible for newly added names.
And I agree the behavior of the new functions is different from the C
functions. So I agree with Kenji Hara, they should have different names.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list