Skip to content

Added true and false operators - #11860

Merged
rpetrusha merged 1 commit into
dotnet:masterfrom
paulomorgado:patch-1
Apr 16, 2019
Merged

rpetrusha merged 1 commit into
dotnet:masterfrom
paulomorgado:patch-1

Conversation

@paulomorgado

Copy link
Copy Markdown
Contributor

Summary

The true and false operators were missing.

The `true` and `false` operators were missing.

@rpetrusha rpetrusha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @paulomorgado, for contributing to the dotnet/docs repo and adding the missing operators. We'll merge your PR now. Your changes should be live on docs.microsoft.com in the next day or two.

@rpetrusha
rpetrusha merged commit e022b0e into dotnet:master Apr 16, 2019
@pkulikov

Copy link
Copy Markdown
Contributor

@paulomorgado @rpetrusha the sections are ordered by operator precedence, so added sections should be merged into one and moved. But to which location? Even the language spec says nothing about precedence of the true and false operators:
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/expressions#operator-precedence-and-associativity

In general, those two operators are exceptional: they are not predefined and a user must overload them to use. So, not sure if they should be listed at all.

@paulomorgado

Copy link
Copy Markdown
Contributor Author

Maybe @BillWagner can shed some light into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants