That could be hidden from the user by tooling though, perhaps by
recompiling the previous version of the namespace with just the form the
user wants to load modified. That would also fix one serious problem with
per-form evaluation, which is that the line numbers for subsequent forms
get messed up (assuming that the form you're working on is a different
number of lines to the previous version). This affects exception
stacktraces and debugging.

Also, anyone using CLJS and Figwheel is already loading ns-at-a-time. It's
a slightly different workflow, but most people seem to love it.

On 27 April 2016 at 23:47, Stig Brautaset <s...@brautaset.org> wrote:

> Colin Fleming <colin.mailingl...@gmail.com> writes:
>
> >     Unit of compilation is the module, not sure how that all plays out
> with
> >     the Elixir repl, but it's not optimal. From what I can tell,
> re-deffing a
> >     defn would require re-loading an entire namespace (module)...
> >
> > Reloading a whole namespace on an evaluation doesn't seem like a
> > show-stoppingly bad idea though, does it?
>
> It means the whole namespace has to compile at all times, as opposed to
> just the form I'm currently working on. Not show-stoppingly bad
> perhaps, but certainly workflow-altering.
>
> Stig
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to