News for hackers. Stuff that matters.
Re:Was Rust Worth It? by epage on Wednesday October 25, 2023 @10:53PM (#38021139)
I find this interersting as most namespacing solutions would need the cargo team involved and I've heard nothing about this.
Re:Was Rust Worth It? by bluejekyll on Wednesday October 25, 2023 @11:57PM (#38021446)
This was my first thought too. And there are a lot of questions that will get asked, like, will all crate library names start being prefixed as well? So you end up with

use::bar; // changing to

use::foo::bar;

I assume the library names that can be overridden in cargo would still be accepted, and then it all gets a little messy. The transition would be very messy.

Re:Was Rust Worth It? by epage on Thursday October 26, 2023 @09:23AM (#38025183)
My preferred syntax route is a new separator in package names and the lib name gets populated by everything after it.

Still doesn't solve all of the policy problems with namespacing.