phobo's std.file is completely broke!
Vladimir Panteleev
thecybershadow.lists at gmail.com
Wed Sep 19 06:11:22 UTC 2018
On Wednesday, 19 September 2018 at 06:05:38 UTC, Vladimir
Panteleev wrote:
> [...]
One more thing:
There is the argument that the expected behavior of Phobos
functions creating filesystems objects with long paths is to
succeed and create those files. However, this results in
filesystem objects that most software will fail to access
(everyone needs to also use the long paths workaround).
One point of view is that the expected behavior is that the
functions succeed. Another point of view is that Phobos should
not allow programs to create files and directories with invalid
paths. Consider, e.g. that a user writes a program that creates a
large tree of deeply nested filesystem objects. When they are
done and wish to delete them, their file manager fails and
displays an error. The user's conclusion? D sucks because it
corrupts the filesystem and creates objects they can't operate
with.
More information about the Digitalmars-d
mailing list