Re: Function order in Clojure vs scripting languages

2014-12-07 Thread Stuart Sierra
Yes, it's about the size of a compilation unit and how to handle undefined references. Rich Hickey posted this https://news.ycombinator.com/item?id=2467359 detailing the trade-offs involved in choosing Clojure's strategy. -S On Sunday, December 7, 2014 9:37:40 AM UTC-5, Ashton Kemerling wrote:

Re: Function order in Clojure vs scripting languages

2014-12-07 Thread Ashton Kemerling
Clojure, like most lisps, is designed around a REPL. So the highest compilation unit isn't a file, but a top level definition like defn or defmacro. While the comparison isn't perfect, compilation in a lot of lisps is a lot like piping a file into an active REPL, at least from a user's perspect

Function order in Clojure vs scripting languages

2014-12-07 Thread gvim
Considering Clojure has a compile phase why is it more dependent on function definition order than scripting languages like Perl? My naive assumption is that one of the benefits of a compile phase is that every definition is defined ahead of runtime. gvim -- You received this message because