iex trick: how to continue after a typo

iex is the interactive elixir tool. It’s a great repl.

Sometimes when editing you make a typo and get stuck in the edit loop.
On a new line you can use:

This will cancel the current edit item and allow you to continue.
This means that you don’t have the shell restarting and don’t have to set up all the global state that you have been working on.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s