IssueRaiser

I'd say that would be much more surprising and unintuitive behavior just for the sake of slightly more convenient REPL use.

I'd say that would be much more surprising and unintuitive behavior just for the sake of slightly more convenient REPL use. I wouldn't want stringifying any function to automatically call it. What if you store the function somewhere and print it for debugging, and then have to figure out why your program keeps crashing when you try to just print a list of functions? Besides, you usually have a more convenient exit available with Ctrl-D anyway.

Posted by Taywee on Oct 9, 2021, 3:06 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

hackernews (Other)

I'd say that would be much more surprising and unintuitive behavior just for the sake of slightly more convenient REPL use.

TayweeOct 9, 2021, 3:06 PM

I'd say that would be much more surprising and unintuitive behavior just for the sake of slightly more convenient REPL use. I wouldn't want stringifying any function to automatically call it. What if you store the function somewhere and print it for debugging, and then have to figure out why your program keeps crashing when you try to just print a list of functions? Besides, you usually have a more convenient exit available with Ctrl-D anyway.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue