3 ms·
> Releasing known-bad code is something nobody would do Mmm. I guess it depends how mischievous people are. Is https://crates.io/crates/misfortunate https://c
by tialaramex 5y ago
> Releasing known-bad code is something nobody would do
Mmm. I guess it depends how mischievous people are.
Is https://crates.io/crates/misfortunate https://crates.io/crates/misfortunate known-bad code? Take misfortunate::Comte which claims to be an ExactSizeIterator but lies and with a simple "tap" from your wand produces an infinite number of cloned Rabbits ?
OK, how about Mara's https://crates.io/crates/whichever-compiles https://crates.io/crates/whichever-compiles or https://crates.io/crates/nightly-crimes https://crates.io/crates/nightly-crimes ?
I mean, maybe I'm a bad person for writing misfortunate, but is Mara, Rust's library team lead, a bad person?
- AaronFriel 5y agoI think the person you're replying to wasn't suggesting those are bad people, but it's hard to dispute that "misfortunate" which violates trait contracts is "bad code". It's well written, good for some definition of good, but also it will definitely break callers that rely on the invariants traits represent and by that meaning, it is "bad code". Fortunately, these people are very clever, very good Rust developers and they are not maliciously dropping nightly crimes into widely used crates :)