• @[email protected]
      link
      fedilink
      3
      edit-2
      1 year ago

      Because it’s not one. Ternary operator is A ? B : C, Elvis operator is A ?: B. The same two characters are involved, but both the syntax and effect is different.

    • QuazarOmega
      link
      fedilink
      21 year ago

      Read further down on my other comment to understand, it’s just how the operator looks