On Mar 17, 12:15 am, "Stephen C. Gilardi" <squee...@mac.com> wrote:
> If *autodef-unresolved-symbols* is true, and if "a" has never been  
> mentioned before, this interaction with Clojure:
>
>         user=> a
>         java.lang.Exception: Unable to resolve symbol: a in this context
>
> would become:
>
>         user=> a
>         java.lang.IllegalStateException: Var user/a is unbound.

Is an exception needed here? Don't exceptions mean computing has been
aborted and shouldn't we use them to signal errors, not warnings?
Would a simple message from Clojure (a special formatting to allow the
IDE to highlight it) be better?

> Under this system:
>
>         - the behavior is optional at the repl. anybody not using it sees no  
> change in behavior there
>         - Clojure would relax its ordering requirements in source files while 
>  
> still ensuring that all forward references are satisfied by the end of  
> each file.
>         - any vars that are intended to be unbound would (still) have to be  
> def'd explicitly.

That would accomplish what we are talking about here. Thanks for
taking time to explore the idea.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to