Skip to content

Commit

Permalink
bring a sentence (extracted from discussion thread) that summarizes q…
Browse files Browse the repository at this point in the history
…uite well a major intended use of the feature.
  • Loading branch information
smoothdeveloper committed Apr 13, 2021
1 parent ea29beb commit 5182282
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drafts/FS-1095-requirenamedargumentattribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ This allows an API designer to enforce call sites abide to design choices in sim

Applying the `RequireNamedArgument` attribute to the method definition will enforce call sites to use the named argument syntax.

This is most useful in cases where subsequent arguments of same type can be confusing or prone to introducing bugs at call sites or during refactorings.
This is useful when
* describing the domain, and wanting the developers who is working on it to mindfully notice what they are passing into the method
* subsequent arguments of same type can be confusing or prone to introducing bugs at call sites or during refactorings

This impacts some type providers where the order of parameter of a type provided member may switch due to adjustment of the input provided to a type provider.

Expand Down

0 comments on commit 5182282

Please sign in to comment.