[Issue 14125] std.file has gotten out of hand
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Feb 4 16:57:56 PST 2015
https://issues.dlang.org/show_bug.cgi?id=14125
--- Comment #19 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to David Nadlinger from comment #17)
> (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.
I find it relevant - abundant small @trusted functions that are obviously not
safe unless the larger context is known is undesirable.
> 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.
Again: my point here is putting our heads together and doing some good
judgment. It is strikingly obvious that the application of @trusted to std.file
has transgressed into a monster of complexity.
--
More information about the Digitalmars-d-bugs
mailing list