@[email protected] to Programmer [email protected] • 2 months agoTell me the truth ...piefed.jeena.netimagemessage-square167fedilinkarrow-up11.15Kcross-posted to: [email protected]
arrow-up11.15KimageTell me the truth ...piefed.jeena.net@[email protected] to Programmer [email protected] • 2 months agomessage-square167fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink5•2 months agoThe mistake was that they created a type that behaves like an array in every case except for bool, for which they created a special magical version that behaves just subtly different enough that it can break things in confusing ways.
minus-square@[email protected]linkfedilink1•2 months agoThe biggest problem is that each element doesn’t have a unique memory address; iterators aren’t just pointers.
The mistake was that they created a type that behaves like an array in every case except for
bool
, for which they created a special magical version that behaves just subtly different enough that it can break things in confusing ways.Could you provide an example?
The biggest problem is that each element doesn’t have a unique memory address; iterators aren’t just pointers.