[Issue 14389] The "(attributelist):" attribute notation scope of effect
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 10 00:56:14 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=14389
Bolpat <qs.il.paperinik at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |qs.il.paperinik at gmail.com
Resolution|--- |WONTFIX
--- Comment #10 from Bolpat <qs.il.paperinik at gmail.com> ---
In my opinion, the `attribute:` syntax is only useful in small-ish aggregates
that can be overlooked with not much effort. If your scope is larger, large
enough that you ask for !pure or the like, don't use blocks.
@Ketmar Dark, !public would just mean: use the default visibility when nothing
else is specified. So, !public is public for everything except imports; in that
function, it would be really hilarious.
The only `attribute:` I'd consider useful at all is `@safe:` because usually,
one is going to write @safe code anyway if you think about including it on top
of your module. If some @system function is among others, it can be annotated,
as the @trusted wrapper to make it usable.
This whole thing was discussed at lengths in the past years and went nowhere.
--
More information about the Digitalmars-d-bugs
mailing list