[OT] Move semantics in a nutshell

monkyyy crazymonkyyy at gmail.com
Fri Nov 7 23:47:21 UTC 2025


On Friday, 7 November 2025 at 19:31:31 UTC, Sergey wrote:
>

> https://www.youtube.com/watch?v=Klq-sNxuP2g
> invarients are super duper important
> (ints just work tho)
> some of the worse sorts of c++ complexity
> rust being annoying

What a very strong argument for never ever doing this, but 
strangely the author thinks this is all important

Int "has the invariant" that its bits "represent" 0 from int.max, 
this is a perfect "bipart map" of the real hardware

.... Or you can just say "Ints airnt stupid"

---

Theres is like 1 "invariant" anyone ever cares about "does it 
exist?", why not just make a warper of slices to 
`length()=>data.ptr is null ? 0 : data.length`

woaw so much safety



More information about the Digitalmars-d mailing list