Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nv-vn
· 10y ago · 0 comments
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.
Comments
[–]
aeosynth
10y ago
That 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.