News for hackers. Stuff that matters.
Re:Rust 1.100.0 by kibwen on Thursday November 12, 2026 @05:06PM (#50475001)
Proposal here: https://github.com/rust-lang/libs-team/issues/820

Looks like part of the motivation was for things with long names like `some_struct_a.some_field_b.some_subfield_c`, where needing to name the field twice would have pushed people to using `^= true` instead, which is a bit more roundabout to decipher and risks people forgetting the idiom and writing `^= false` by accident. Not necessarily the most useful API, but not unmotivated and harmless to add.

Re:Rust 1.100.0 by ammar_az on Thursday November 12, 2026 @05:40PM (#50475432)
I think `toggle()` is also much better for readability as `^=true`