News for hackers. Stuff that matters.
Re:Allocgate: Restructuring how allocators work in Zig by PaulDavisThe1st on Wednesday December 15, 2021 @09:18PM (#29574079)
> In order to have a reasonably complete language that has RAII and value types, you must also have: - constructors - destructors - overloadable copy assignment operators - placement new - move semantics and rvalue references

C++ didn't have move semantics at all until several decades after it had RAII.

Re:Allocgate: Restructuring how allocators work in Zig by Spex_guy on Wednesday December 15, 2021 @09:23PM (#29574101)
Yes, move semantics were added because the language was considered incomplete without them. In particular, because RAII based resources like std::vector could not be relocated without very expensive value copy operations.