On 16 Mrz., 20:45, David Nolen <dnolen.li...@gmail.com> wrote: > Should the REPL have an "interactive" mode where it won't fire an exception > on undefined symbols and instead issue compiler warnings? If compiler > warnings were issued this would be a nice hook for Emacs and other IDEs.
Yes, I was thinking about this also for a while. What I propose is: Whenever Clojure finds the use of a not known symbol in a code file, it will always look ahead and see if it can find this symbol. If that is not the case an error should be thrown, as it currently happens. If it can find the concrete definition it should emit a warning. The way to silence the warning is to declare that symbol before. This behaviour would not disturb anyone who likes the current system. Typos will not go unnoticed, the dev will see that warning. He/She can add the declare as usual. Others can continue from that point and have to live with that warning, but enjoy the protection from a class of typos and also be able to arrange their code in a different way and spare these declares. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---