Of course, defining the function makes it easier to invoke your code if you think it might have wider usefulness. Joshua
On Sun, Mar 15, 2009 at 3:55 AM, Keith Bennett <keithrbenn...@gmail.com>wrote: > > Is it a good idea or a bad idea to provide a main() function as the > program's entry point? > > As an example, I have a program at http://is.gd/ndTV. If you look at > the bottom you'll see (unless and until I change it) the specification > of a main function, and then a call to it. I'm aware that I could > just list the contents of main() outside any function, and it would > work the same way. > > So which approach is better, and why? > > Thanks, > Keith > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---