Hacker News new | ask | show | jobs
by skydhash 225 days ago
The nice thing about REPLs is that you can try random snippets code. And as the sibling comments put it, you rarely switch to the prompt interface. Instead you `eval` a bit of code and it got sent to the running state of your program as if you've typed it as the prompt. It's more like brainstorming a program using a mood board.

You kinda have to keep track of the state, but the latter can be easily inspected so there's no need to keep it your head.

1 comments

I'd even say it gives you an incentive to not keep a lot of opaque state lying around and this is a good thing