4 ms·
> I am finding it far more likely that it is correct when the compiler is happy with it, it's pretty interesting though - surely you would have flagged the equ
by jcelerier 4y ago
> I am finding it far more likely that it is correct when the compiler is happy with it,
it's pretty interesting though - surely you would have flagged the equivalent C++ code to what is discussed in https://github.com/rust-lang/rust/issues/93740 https://github.com/rust-lang/rust/issues/93740, if my understanding is correct - akin to std::unique_ptr<pthread_mutex_t>, as obviously wrong ? It's a pattern that was apparently commonplace in rust until now yet I would definitely not let my first year comp. sci. interns get away with something like this during code review.
- tialaramex 4y agoWhat about it is "obviously wrong" ? Did you mean here, "Not performing as well as I'd like" ?
- staticassertion 4y agoI think I would really enjoy reading you explain what's obviously wrong about that.