SyntaxError: cannot use `??` unparenthesized within `||` and `&&` expressions
developer.mozilla.org
developer.mozilla.org
If don't believe I've used that word wrong. That's precisely the language quoted in the article for JavaScriptCore/Safari:
SyntaxError: parentheses must be used to disambiguateIn some languages it might fall under the realm of "undefined behavior" (in that it compiles/validates syntactically but will likely blow up at runtime), though most linters for even those languages warn you about that. Alternatively, it might define a precedence for you, avoiding the need for parens.
I suppose it's true that there are 'multiple ambiguous' chains, but it's resolved by making it a syntax error.
Maybe that's just my reading though, caffeine deficient at the moment!
Or Kotlin or Objective C, though they use "?:"
"Please use the original title, unless it is misleading or linkbait"