3 ms·
This seems like it's just re-stating what I said? I guess it can be tidier to use replace rather than swap depending on the circumstances. Edited-to-add: The r
by tialaramex 3y ago
This seems like it's just re-stating what I said? I guess it can be tidier to use replace rather than swap depending on the circumstances.
Edited-to-add: The replace_with crate seems like it's taking the opposite approach to Aria's "Pre-pooping your pants" essay and I don't like that. It has a bunch of safety pre-requisites on functions labelled safe, which is not good Rust.