[Issue 14125] std.file has gotten out of hand
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Feb 4 16:52:31 PST 2015
https://issues.dlang.org/show_bug.cgi?id=14125
--- Comment #17 from David Nadlinger <code at klickverbot.at> ---
(In reply to Walter Bright from comment #10)
> @trusted functions must be reviewed to determine if they present a safe
> interface or not. Merely wrapping an unsafe operation is not good enough and
> must not pass review.
This isn't relevant to the issue discussed here. The helper functions in
std.file are local to their callers.
While I agree that the code looks odd and a visually less noisy alternative is
to be preferred (e.g. lambdas), no @safe-ty issues are exposed to client code.
--
More information about the Digitalmars-d-bugs
mailing list