• @[email protected]
      link
      fedilink
      3
      edit-2
      5 months 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.

      • @[email protected]
        link
        fedilink
        English
        25 months ago

        The second one isn’t valid syntax in any programming language I’m familiar with. What does it do?