Hacker News new | past | comments | ask | show | jobs | submit login

> Once I opened up a project and realized I wanted one of them, but it was lost when the REPL closed.

You don't type directly in the REPL most of the time. Send lines and functions to it instead.




Ohhh, I wondered why people were so hyped about that! In my head I rounded it off to not wanting to recompile the whole file- I should have realized how dumb that was. This actually makes a lot of sense. When I helped a friend set up Calva, a part of me was really just assuming it was misconfigured- but no, it's designed to facilitate this kind of editing.

Though, I must ask, is it really that much better? I do keep functions around if I think I'll have a use for them again- the vast vast majority really are one-offs. Plus, most of my REPL usage is iterating on an expression. Obviously it's handy to edit it in place, but it's nice having multiple versions, even multiple trees, without having to relocate a cursor or undo unrelated changes.


> Though, I must ask, is it really that much better?

Yes, it is.

> Obviously it's handy to edit it in place, but it's nice having multiple versions, even multiple trees, without having to relocate a cursor or undo unrelated changes.

You can do both.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: