2011/10/4 Russell Leggett <russell.legg...@gmail.com>:
> On Tue, Oct 4, 2011 at 12:51 PM, Mike Samuel <mikesam...@gmail.com> wrote:
>
>> No it doesn't.
>>
>> Just walk the object graph starting from the root object and let the
>> set of all reachable symbols be A.
>> Load jQuery
>> Walk the object graph again letting the set of all reachable symbols be B.
>>
>> The public API of jQuery is then (B - A).
>
> That's works fine under 2 conditions:
>
> 1. You're willing to execute code instead of statically analyze it
> 2. You're capable of executing that code in isolation.

This should be true for most libraries out there.
It obviously doesn't hold for user code and definitely not for all
code in an IDE since IDE's have to deal with code during editing.

> On larger projects, to understand how a single file will be executed
> may require understanding many other files in configuration. Modules
> will help this a great deal - but its a syntax update, and part of the
> point being made here.
>
> I would say that now that Microsoft is embracing JavaScript for
> Windows 8, and Adobe is accepting that HTML5 will replace a great deal
> of flash, the toolmakers will be going to work. Even without syntax
> improvements, we should see a lot of tooling improvements - however,
> until there's more to grasp onto, I think there will always be a
> ceiling on feasible tooling for an arbitrary codebase.


> - Russ
>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to