• Chais@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    2 days ago

    But just to nitpick, wouldn’t this parse into “Forth ❤️ I”? Which is to say, aren’t the operands in the wrong order?

    • JohnnyCanuck@lemmy.ca
      link
      fedilink
      arrow-up
      10
      ·
      2 days ago

      But just to nitpick, wouldn’t this parse into “Forth ❤️ I”? Which is to say, aren’t the operands in the wrong order?

      No, they’re correct. You’re parsing it wrong.

      • froh42@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 days ago

        That’s true, but as the Forth is top of stack I’d read it as the subject and I as the object. OFC that’s just how you define the heart-word, but still.

        • Victor@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          2 days ago

          The operand at the top of the stack is used as the second operand for binary operators. Second from the top is used as the first operand.

          Here illustrated using dc, and doing the calculation 3 - 1 and printing the answer with the command p, getting the result of 2. As we can see here with a noncommutative operation (subtraction), in order to illustrate the point, we get 2, rather than -2.

          ~ dc
          3 1 - p
          2
          
        • jdnewmil@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          Color me mystified. Why would you map the verb of an English sentence to anything but a function or method in a computer language expression?