:) I like that description! :)
On Mar 26, 4:47 pm, David Nolen wrote:
> For what it's worth I'm a big fan of the wishful thinking programming style.
> I write some functions how I think they should look, declare the functions I
> haven't defined yet. Then I implement the lower level functions, w
For what it's worth I'm a big fan of the wishful thinking programming style.
I write some functions how I think they should look, declare the functions I
haven't defined yet. Then I implement the lower level functions, write some
tests- then usually the higher level stuff works without too much twe
Hi Mark,
A fuller discussion can be found here:
http://groups.google.com/group/clojure/browse_thread/thread/a99b420d5ee0aa40/47f8c2ab6845e9ae
Which has links to the simple patch I tried, and discusses the more
advanced technique Laurent experimented with.
Elena subsequently developed an emacs plu
On Wed, Mar 11, 2009 at 5:18 PM, Timothy Pratley
wrote:
> It is also quite trivial to patch the compiler to auto-def symbols as
> it finds them instead of throwing an error.
I would be interested in knowing how to do such a patch. When I work
on code, I like to organize my functions in a way th
Clojure does support forward referencing (if I understand your
question):
user=> (declare a)
user=> (defn b [x] (a x))
user=> (defn a [x] (b x))
user=> (a 4)
java.lang.StackOverflowError
Note: (declare a) is a synonym for (def a) which works also.
It is also quite trivial to patch the compiler to
On Mar 11, 4:23 pm, quasar wrote:
> It seems it makes Clojure source code to be in the order of lowest-to-
> highest abstraction.
> Naive mutual recursion based on top-level functions is impossible.
> I am curious, is it due to the current implementaiton of Reader or by
> design?
You can use
(
It seems it makes Clojure source code to be in the order of lowest-to-
highest abstraction.
Naive mutual recursion based on top-level functions is impossible.
I am curious, is it due to the current implementaiton of Reader or by
design?
Best regards,
Leonid
--~--~-~--~~~-