import strangeness with std.stdio.write

ixid nuaccount at gmail.com
Tue Feb 13 16:55:10 UTC 2018


On Tuesday, 13 February 2018 at 13:52:37 UTC, rikki cattermole 
wrote:
> write exists in both, writeln exists only in std.stdio.
>
> Use named imports to pick which write you want.

It does seem a little silly to have a name clash with such a 
commonly used function. Would it not be better to rename 
std.file.write to something like writeFile and deprecate the 
current name?


More information about the Digitalmars-d-learn mailing list