Hacker News new | ask | show | jobs
by samth 724 days ago
We considered that syntax, but `from` was not a reserved keyword already, whereas `import` was, so the parsing situation with the actual syntax was much better.
2 comments

why not just `import 'fs' { read }`?

    import "./foo_bar.js" (for FooBar)