Rusty 🦀 Femboy 🏳️🌈@lemmy.blahaj.zone to Programmer Humor@lemmy.mlEnglish · 5 months agoI love Rustlemmy.blahaj.zoneimagemessage-square9fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageI love Rustlemmy.blahaj.zoneRusty 🦀 Femboy 🏳️🌈@lemmy.blahaj.zone to Programmer Humor@lemmy.mlEnglish · 5 months agomessage-square9fedilink
minus-squareflying_gel@lemmy.worldlinkfedilinkarrow-up0·5 months agoI do appreciate how newer C++ standards have made these kinds of things a lot easier too. Define all comparison operators with just one one line using C++20 auto operator<=>(const ClassName&) const = default;
minus-squarexor@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up1·5 months agoIt’s nice that this exists these days, but my god is it horrendously unreadable at a glance
minus-squareEphera@lemmy.mllinkfedilinkarrow-up1·5 months agoIt makes it look like they’re just adding random noise to avoid colliding with existing syntax. Maybe they can try a UUID next time…
I do appreciate how newer C++ standards have made these kinds of things a lot easier too.
Define all comparison operators with just one one line using C++20
auto operator<=>(const ClassName&) const = default;
It’s nice that this exists these days, but my god is it horrendously unreadable at a glance
It makes it look like they’re just adding random noise to avoid colliding with existing syntax. Maybe they can try a UUID next time…