auto attribution pros/cons
Bruce Carneal
bcarneal at gmail.com
Sun Jun 28 22:04:30 UTC 2020
On Sunday, 28 June 2020 at 21:44:45 UTC, kinke wrote:
> On Sunday, 28 June 2020 at 18:39:13 UTC, Bruce Carneal wrote:
>> Other pros/cons?
>
> The main problem IMO is the API instability - an
> innocent-looking change for a little leaf function may impact a
> huge number of callers, which e.g. affects D symbol name
> mangling. And a function f may become @safe when the last
> @system callee is, which might enable unwanted bounds checks
> for f with -release (and without additional -boundscheck=off).
You can force "hard points" in an API by using explicit
attribution, just like today for templated functions.
More information about the Digitalmars-d
mailing list