CLI or embedded in editor, I don’t mind either.
Ask HN: What are some well-designed REPLs?
1–4 of 4 posts
I am designing a DSL and a REPL, and am looking for some inspiration.
Re: Ask HN: What are some well-designed REPLs?
#2I don't know if it technically qualifies as a REPL[1], but I really enjoy Elixir's interactive console, IEx. What I like about it:
- Tab completion (obviously). Not only for functions/modules/bindings that are in scope, but also when you're in a string and begin typing a path, it will complete the directory names and stuff.
- You can type "h" before a module or function name to read the docs. Similarly, you can do the same with "t" to see type information.
- History of what you've executed, and also a reverse history search feature.
- Not fully "readline compatible", but some basic, standard key bindings work.
- Plenty of handy helper functions.[2]
Re: Ask HN: What are some well-designed REPLs?
#3I like bpython. An extension of pythons repl
Re: Ask HN: What are some well-designed REPLs?
#4Ruby's IRB has always been nice to work with: https://github.com/ruby/irb#commands
Of course LISP is the example to look at with REPL: https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93prin...
...esp with Emacs: https://slime.common-lisp.dev/