Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> One of the understated features go run is that it will automatically download any dependencies the code references; how cool is that!

All this plus talk about non-standard JS runtimes like Node, but no mention that this is how browsers have worked almost forever.



JavaScript started out as an interpreted language but ended up more like a compiled language due to minifying, TypeScript, JSX/TSX, and so on. So it's not simple anymore.

At this point, URL imports are actually bad due to the confusion between source and compiled code. Ideally, imports should always point to source code. Bundling / minification should happen at the application level; it's not a library concern.

So in that sense, Go's a lot cleaner since it's always been a compiled language.


Go (the language) is a lot "cleaner" (than JavaScript, the language—and not the various runtimes, previously mentioned in the earlier comment), because with Go (the language), there's more code mangling going on.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: