Closed GoogleCodeExporter closed 9 years ago
You are, of course, free to create a function with described behavior. However,
such
function is very orthogonal to the CommonJS module system (as you already
mentioned),
as it pollutes the global context and reduces code maintability.
If you care to share your code and intentions, I might be able to give you some
hints
regarding refactoring to take advantage of require+exports system.
Original comment by ondrej.zara
on 19 Feb 2010 at 6:52
I figured the require+exports system was sufficient for what i needed.
It was just an initial reaction because i was used to includes like those in
php. I
realized using exports results in much better code.
Thanks anyway :)
Original comment by hle...@gmail.com
on 19 Feb 2010 at 8:37
Glad to be of help :)
Original comment by ondrej.zara
on 19 Feb 2010 at 10:34
Original issue reported on code.google.com by
hle...@gmail.com
on 19 Feb 2010 at 3:49