I’m all for it, but what kicked it off?

  • entwine@programming.dev
    link
    fedilink
    arrow-up
    11
    arrow-down
    30
    ·
    20 小时前

    Fun fact: that’s why most computer programming languages use “!=” instead of “≠”

    • Echo Dot@feddit.uk
      link
      fedilink
      arrow-up
      18
      ·
      10 小时前

      No it’s because you can’t type the not equal symbol very easily. If you type it it won’t work because most compilers aren’t expecting it.

      But you know your fact is nicer than the boring reality

    • SpaceCowboy@lemmy.ca
      link
      fedilink
      arrow-up
      42
      ·
      20 小时前

      I thought it had more to do with the fact that there isn’t a ≠ key on most people’s keyboards.

      • orbitz@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        18 小时前

        My editor’s font/ligeratue changes the != To that symbol when programming. Unfortunately I have to use visual basic usually and type out Not most of the tiime but works well with C#.

        Probably not a big increase in readability but I like it. Damn hate all the words needed in VB.net but oh well, could not be programming for work which would be worse and least still know .net libraries.

        • percent@infosec.pub
          link
          fedilink
          arrow-up
          2
          ·
          13 小时前

          Whoa, I didn’t know Visual Basic is still around. I remember using VB6, many years ago

      • entwine@programming.dev
        link
        fedilink
        arrow-up
        4
        arrow-down
        8
        ·
        16 小时前

        Well, that’s because they removed it after WW2. The original IBM keyboard had this, and other Nazi symbolism. (IBM collaborated with the Nazis, if you weren’t aware)

        Another fun fact: the Windows logo today is where the swastika used to be. If you look closely, you can see how the swastika’s influence on Microsoft’s iconic logo persists to this very day

    • BlindFrog@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      12 小时前

      Sauce required plz

      “I wrote it on the internet” isn’t a good enough sauce for ppl, it’s tasteless

      • thethunderwolf@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 小时前

        No, it’s false. It’s actually because a key doesn’t exist for “≠” making “!=” easier to type. Exclamation mark is used because in computer science it means “not”.

      • markovs_gun@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        16 小时前

        This is not one thing you learned today come on dude just think about it for two seconds. Could there possibly by another, much more likely reason that a programming language wouldn’t use ≠? Here’s a hint- if you’re at a computer, look down at your keyboard.

        • frog_brawler@lemmy.world
          link
          fedilink
          arrow-up
          1
          arrow-down
          5
          ·
          14 小时前

          I mean, if the point you’re trying to make is that “≠” is not available on a keyboard, =/= is.

          • Echo Dot@feddit.uk
            link
            fedilink
            arrow-up
            4
            arrow-down
            2
            ·
            10 小时前

            What’s your point? =/= Isn’t the “not equals to” term, it’s !=

            Just as ≥ isn’t available, so you have >= and ≈ is not on the keyboard, so we have ==

            Formal logical operators require the you to press the alt key and enter a numerical sequence on the keypad. If I had to type the logical operators with alt codes it would slow me down.