• xarvos
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    3 years ago

    As a programmer I’m annoyed at mismatching parentheses.

    Is there a saner notation 😢

    • carbon_dated
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      I never saw that notation. I learned to write ]a, b] instead.

      • xarvos
        link
        fedilink
        arrow-up
        4
        ·
        3 years ago

        That’s French notation iirc. More intuitive imo, but its parentheses are also mismatching.

        • carbon_dated
          link
          fedilink
          arrow-up
          4
          ·
          3 years ago

          Yeah, they do mismatch. I just mentioned it because I was unfamiliar with the notation in the image. You could also write {x ∊ ℝ : x > a ⋀ x ≤ b} or [a, b]\{a}

  • murky
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    terrible for bad handwriting, otherwise practical

  • Riven@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    [a,b) is commonly called “half open” in the database world, so my first instinct is to call (a,b] half closed. Sounds weird though. Inverse half open?