-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Suggestion: implement ternary conditionals #3239
Copy link
Copy link
Closed
Labels
Committee-ReviewedPS-Committee has reviewed this and made a decisionPS-Committee has reviewed this and made a decisionIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugWG-Languageparser, language semanticsparser, language semantics
Milestone
Metadata
Metadata
Assignees
Labels
Committee-ReviewedPS-Committee has reviewed this and made a decisionPS-Committee has reviewed this and made a decisionIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugWG-Languageparser, language semanticsparser, language semantics
Type
Fields
Give feedbackNo fields configured for issues without a type.
C-style ternary conditionals would be a handy addition to the language.
For instance, instead of writing:
one could write:
It would also relieve a long-standing disappointment:
From a PowerShell Team blog post dated 29 December 2006.
Related: implement null-coalescence and null-soaking and null-conditional assignments