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

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



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




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: