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

The article closes with a discussion of "true interactive development". I was particularly interested in this and wondered how IEx (Elixir's REPL) compares to Common Lisp's. So, I started this thread on the Elixir Forum: https://elixirforum.com/t/hell-is-other-repls-how-does-iex-c...



I tried Alchemist-mode for about 1 hour and compiled these remarks: https://gist.github.com/vindarel/59db5d57391f35e86288f2c6bf7...

- it seems some core lisp/Slime features are not there: compile one function independently, get type warnings and errors, goto source definition working OOB, no function signature (?), find who calls a function or macro, who sets a variable, and then no interactive debugger, no stepper, no inspector… ?


A few things I like about IEx:

- Supports tab completion, shortcut keys like ctrl-a/ctrl-e and probably more that I don't ever use.

- Top notch support for unicode and supports color (IO.inspect with [color: true])

- EZ access to docs (Just type h in front of what you want to know about)

- You can recompile your project without leaving the repl (keeping whatever state you have)

- You can access the history of what has been returned using the v function

- Remote shell support (type `h IEx`) to learn more.

---

One thing I don't like: If you get mixed up and forget how many braces or parenthesis you need to close, you get stuck. I usually have to quit iex to get out. There may be a better solution to this that I'm just not aware of


There may be a better solution to this that I'm just not aware of

When that happens, I simply enter 'iex> end' which would return a SyntaxError, and start over but without having to restart iex.




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

Search: