• brian@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    3 days ago

    repr is generally assumed to be side effect free and cheap to run, so things like debuggers tend to show repr of things in scope, including possibly exit

    also then it behaves differently between repl and script, since repr never gets run. to do it properly it has to be a new repl keyword I imagine, but I still don’t know if I’m sold on the idea

    • scott@lemmy.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 days ago

      Good points. You’re right, it does need solved at the shell level. Glad they did so.