Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75900 > unrolled thread

Comparisons of Python's module/import system with JavaScript?

Started bySkip Montanaro <skip@pobox.com>
First post2014-08-08 13:08 -0500
Last post2014-08-08 13:08 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Comparisons of Python's module/import system with JavaScript? Skip Montanaro <skip@pobox.com> - 2014-08-08 13:08 -0500

#75900 — Comparisons of Python's module/import system with JavaScript?

FromSkip Montanaro <skip@pobox.com>
Date2014-08-08 13:08 -0500
SubjectComparisons of Python's module/import system with JavaScript?
Message-ID<mailman.12757.1407521311.18130.python-list@python.org>
I'm struggling with some JavaScript issues related to it's lack of
good support for modules. I know RequireJS exists (and appears to be
the most widely used add-on for this stuff), but as a novice JS
programmer, I'm having trouble wrapping my head around just what it
does. In particular, I don't see how it injects names into the scope
which calls require(). I'm hoping someone here understands both the
Python and JS models (preferably as represented by RequireJS) and can
provide some advice, perhaps a pointer to a blog post? I've not found
anything yet.

Thanks

Skip

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web