Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Optimization suggestions for the ternary operator #692

Unanswered
BubbleGarten asked this question in General
Discussion options

After evaluating the expression following the question mark, there is no need to evaluate the expression following the colon. This is because I believe that such an overall expression is more intuitive:

image
You must be logged in to vote

Replies: 1 comment

Comment options

I think this is a playground error. it makes subscription array - strict. I need to update playground rules what if array is empty any fields are allowed.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /