-
Notifications
You must be signed in to change notification settings - Fork 90
C# 7.x: enhanced generic constraints #244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
converting to draft: C# 7 feature |
35805a1
to
a388043
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few things to look at, the consistency in approach/description being a key one.
Describe what happens when a type called `unmanaged` exists in the scope of an unmanaged constraint.
7e5894b
to
c010892
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another one that could do with discussion at the meeting, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've thumbed up Jon's suggestions, made my previous suggestion into a formal one (which took me 4 suggestions, couldn't figure out how to do a single multiline one), and added a new one to avoid repetition.
If the re-wording suggestion is adopted then unamanaged
needs to be added to contextual_keyword
in §6.4.4 Keywords
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add one set of typos to fix.
Co-authored-by: Nigel-Ecma <[email protected]> Co-authored-by: Jon Skeet <[email protected]>
@Nigel-Ecma Can you approve the changes on this PR? I think Rex and I have addressed all your comments, or accepted your suggesitons. |
Remove V6-specific entries, and add first new V7 items.
Per Nigel's request, add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good :-)
see dotnet/csharpstandard#244 The standard draft language has been updated to add the `unmanaged` generic constraint. Remove the feature speclet from the docs site.
see dotnet/csharpstandard#244 The standard draft language has been updated to add the `unmanaged` generic constraint. Remove the feature speclet from the docs site.
Add support for the following kinds of primary constraints:
unmanaged
,System.Enum
, andSystem.Delegate
.