News for hackers. Stuff that matters.
Re:NPM and NodeJS should do more to make ES Modules easy to use by afiori on Thursday June 20, 2024 @11:23AM (#40739766)
I dislike the assumption that natural languages are a good base for the syntax of programming languages,

In my personal contrarian opinion I would have wanted something along the lines of

    import "url" with {namedImport}, defaultImport;
With other keywords like import assertion mixed at the same level

    import "url" assert {type:"js"} with {namedImport}, defaultImport;
I admit that `with` is not a great choice...

There are no comments on this comment yet.