4 ms·
Why can't this be done as a module declaration? I.e. a file would be prefaced with `module Main;` to declare that it's a module and give it a name.
by nv-vn 10y ago
Why can't this be done as a module declaration? I.e. a file would be prefaced with `module Main;` to declare that it's a module and give it a name.
- aeosynth 10y agoThat requires modification to every file using ES modules, and new syntax. The proposed solution only requires modifying files which do not have an import or export statement, and does not need new syntax.