3 ms·
> (A good REPL) gives you access to your whole project code. You should be able to call any piece of code written in your project of its dependencies. As an exe
by capableweb 4y ago
> (A good REPL) gives you access to your whole project code. You should be able to call any piece of code written in your project of its dependencies. As an execution platform, the REPL should reproduce the conditions of running code in production as much as possible.
Then, some languages (like Clojure) have global functions like `doc` or `apropos` that helps you write code.
=> (doc map)
-------------------------
clojure.core/map
([f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls])
Returns a lazy sequence consisting of the result of applying f to the
set of first items of each coll, followed by applying f to the set
of second items in each coll, until any one of the colls is
exhausted. Any remaining items in other colls are ignored. Function
f should accept number-of-colls arguments.
=> (apropos #".+?reduce")
-------------------------
(clojure.core/areduce clojure.core/ensure-reduced clojure.core/unreduced ...)
So when you write Clojure code with a REPL, you hardly need anything else but a REPL + text editor that can connect to said REPL.