On Mon, Dec 1, 2008 at 1:15 PM, Paul Drummond <[EMAIL PROTECTED]> wrote:
> 2008/11/28 Martin DeMello <[EMAIL PROTECTED]>
>>
>> No, I'd be perfectly happy with a command line tool that could analyse
>> my clojure program and tell me what imports I'm missing - I just don't
>> want to have to tediously go through the javadocs one by one and see,
>> for instance, that I need java.awt.Polygon but java.awt.geom.Point2D.
>> The reason I wondered if this were clojure-specific is that java
>> programs might well be easier to statically analyse than clojure ones.
>
> Ah, I see.   Well, I am not sure how you would go about writing something
> like this but surely if all you are interested in is a list of missing
> imports, you will get that when you try to evaluate your code, right?  For
> instance, for this script:
>
> (def d Date)
> (def r Random)
>
> I get the following when I send the forms to the REPL:
>
> java.lang.Exception: Unable to resolve symbol: Date in this context
> (NO_SOURCE_FILE:1)
> java.lang.Exception: Unable to resolve symbol: Random in this context
> (NO_SOURCE_FILE:2)

I think his point is that if he gets an "Unable to resolve symbol:
Polygon" error and also an "Unable to resolve symbol: Point2D" error
then he still has to figure out which one is in java.awt and which is
in java.awt.geom.  He wants a tool to spit out the list of required
imports so he doesn't have to remember exactly where they all are.  If
there are conflicts, then the tool wouldn't have to guess.  It could
just note the conflict for manual resolution.

-- 
Michael Wood <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to