Hi Joe,

On Fri, Sep 2, 2011 at 12:05 PM, Joe Groff <[email protected]> wrote:
> On Sep 2, 2011, at 11:06 AM, John Benediktsson wrote:
>
>> Is there a way to tell for a given vocabulary what is USE'd, but not 
>> required (i.e., unused imports)?
>
> The only way I know is to remove a vocab's imports then reload it with 
> auto-use enabled, to get an automatically generated, shrinkwrapped manifest 
> from Factor itself. I believe FUEL has some code to do this automatically. 
> It's a suboptimal solution because you have to manually re-resolve any 
> ambiguous or qualified symbols, and auto-use doesn't understand 
> automatically-generated vocabs such as those created by specialized-arrays, 
> but it's the closest thing we have now.

If the parser kept track of which vocabs are actually used, it could
print a warning at the end of parsing with the proper USING: form
(much like auto-use does now).

This will trigger for vocabs that we USE: for side effect but not for
words, but that's probably bad style anyway -- calling require
explicitly in such cases seems clearer to me.

I'll take a crack at this feature this weekend.
Slava

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to