DIP 1030--Named Arguments--Community Review Round 1 Discussion
Zoadian
no at no.no
Sun Feb 9 16:49:07 UTC 2020
On Sunday, 9 February 2020 at 01:47:35 UTC, Jon Degenhardt wrote:
> On Sunday, 9 February 2020 at 01:07:03 UTC, Adam D. Ruppe wrote:
>> [...]
>
> Probably not, but let me give some thoughts and ask a
> clarifying question.
>
> Main thing - As a pragmatic matter, I'd expect it to be much
> more likely that named argument invocation would be a source of
> breakage than usage arising from introspection.
>
> Related - There is significant difference between parameter
> names being public and having the names be sources of backward
> compatibility in function calls.
>
> Now my question - I know function parameters names can be
> retrieved by type introspection. What I don't know is the ways
> those names can be used such that programs can break if a
> parameter names change. Can you give some examples?
vibe.d uses parameter names to generate REST api bindings
see: https://vibed.org/docs#rest-interface-generator
More information about the Digitalmars-d
mailing list