2 ms·
namespaces are a solution to having "authenticated groups of crates", it helps structuring and more importantly restructuring crates.
by pas 2y ago
namespaces are a solution to having "authenticated groups of crates", it helps structuring and more importantly restructuring crates.
- lifthrasiir 2y agoThat's an intention, not the outcome. You might assume that having both `@chrono/chrono` and `@chrono/tz` shows a clear connection between them, but such connection is nothing to do with namespace (the actual crate names are `chrono` and `chrono-tz`), and any authority provided by `@chrono/` prefix is offseted by the availability of similar names like `@chrno/tz` or `chrono-tz`. The only thing namespace can prevent is names starting with the exact prefix of `@chrono/`, and that's not enough.
- pas 2y ago"... any authority provided by [a] prefix is offseted by the availability of [similar prefixes]" I'm not buying this, sorry. Yes, typos and other deceptive things are possible, but having this authority data would allow tools to then use this signal. Not having it seems strictly worse.