That would be true, if I knew what my code was going to do when I started. But most of my code is used to investigate things that I don't understand; so it evolves slowly over time. I don't know when I start what "low-level" is going to be. So, I'm left with the task of removing forward declarations at the end.
I've also been using clojure for representing things other than functions -- logical statements in this case -- and mutational referencing is very common there. If there aren't any tools, then I'm left with doing it by hand. Stuart Sierra <the.stuart.sie...@gmail.com> writes: > Forward declarations are rarely necessary in my experience: you just get > used to defining your namespaces with low-level primitive functions at the > top and higher-level functions at the bottom. You only need forward > declarations (`declare`) in cases of mutual recursion, i.e. two functions > that call each other. > > -S > > > > On Wednesday, August 14, 2013 8:56:06 AM UTC-4, Phillip Lord wrote: >> >> >> One of the things that I find unusual with clojure is the requirement >> for forward declaration. While I can see the advantages, managing it by >> hand can be a pain. >> >> So I was wondering, are there any tools for adding declare statements >> when necessary. And better for working out how to reorder function >> declarations to minimize the requirement for forward declarations. >> >> Phil >> >> > > -- -- Phillip Lord, Phone: +44 (0) 191 222 7827 Lecturer in Bioinformatics, Email: phillip.l...@newcastle.ac.uk School of Computing Science, http://homepages.cs.ncl.ac.uk/phillip.lord Room 914 Claremont Tower, skype: russet_apples Newcastle University, twitter: phillord NE1 7RU -- -- 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/groups/opt_out.