Hacker News new | ask | show | jobs
by acc4everypici 654 days ago
modules? crates??? uhmm... namespaces???

I think you're conflating the language design stuff with the tooling (packaging, and calling that 'modules') ....to be fair, you're conflating but I'm fanboying python

in any case, the point being there's a distinction between an linker and a compiler but not in interpreted languages. so comparing rust's crates with JS, python (even java) is an instance of apples-to-oranges comparisons

1 comments

Maintaining boundaries in your code is something you can do in any language, regardless of built-in support in the language or tooling.

Ironically, untyped languages like js and python are particularly prone to the problems from poor unstructured code, because you can't use static type checking to find broken dependencies at compile time.

/shrug

Can you explain how types would help with code structure? From experience, even with typed TS nothing prevents developers from creating a big ball of mud