News for hackers. Stuff that matters.
Re:Learning Rust – Day 4 – Understanding Modules by tracker1 on Thursday May 12, 2022 @01:54PM (#31357656)
I kind of like how it's relatively explicit. Compare to say C#'s namespaces are anywhere, as long as the build tool sees the file. I can only imagine how much work the development extensions/tools are and it's probably a large part of why, for example, the .Net/C# extension for VS Code feels so slow, quirky and broken compared to other languages, including rust.

This isn't a knock on the C# language, just that I can understand the explicit nature and how it makes the tooling simpler and more consistent.

Also a recent example that is even more explicit is Deno's module system where you tend to explicitly specify a given file/url. It irks me to no end that using this behavior with TypeScript in Node is so broken by comparison (can't reference files with extension).

Re:Learning Rust – Day 4 – Understanding Modules by metaltyphoon on Thursday May 12, 2022 @03:26PM (#31359094)
Make no mistake, the C# VSCode extension is "slow" and sometimes break is simply because Microsoft WON'T allow it to be better than Visual Studio proper. It's as simple as that. Take the dotnet hot reload debacle for instance.