this post was submitted on 03 Jun 2025
482 points (99.0% liked)

Programmer Humor

23829 readers
2897 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] brian@programming.dev 5 points 3 days ago (1 children)

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 2 points 3 days ago

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