• anti-idpol action
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    how does that compare to Hy besides being more domain specific and the order of operations (prefix vs suffix notation)?

    • AndyOPM
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      I’ve never used Hy. Does it offer any concatenative-style interaction?

        • AndyOPM
          link
          fedilink
          arrow-up
          1
          ·
          4 months ago

          So it looks like a totally different data flow style, and (I think) geared toward writing then running programs, whereas Stacker is more for interactive stack-oriented calculator tasks.

            • AndyOPM
              link
              fedilink
              arrow-up
              1
              ·
              4 months ago

              I’d say an important part of this calculator’s interaction model is doing something, getting a result, then doing something else to that result. That’s not too bad in the regular Python interpreter either.

              For example, in Python:

              >>> 5
              5
              >>> 4 + _
              9
              >>> 2 * _
              18
              

              In Stacker:

              >>> 5
              [5]
              >>> 4 +
              [9]
              >>> 2 *
              [18]
              

              Does Hy have something like the Python interpreter’s _?