News for hackers. Stuff that matters.
Re:Announcing Amber.js by tolmasky on Thursday December 08, 2011 @01:21PM (#3330339)
You can still import things conditionally (its treated as a statement), the only real restriction is that the filename is expected to be a static string, so the for loop thing wouldn't work. However, the "guts" of the import statement are also provided to you as a function that you can just call with anything, so you could still have for (;blah;) objj_import(filenames[i], callback) for these kinds of cases.

There are no comments on this comment yet.