Remix.run Logo
hyghjiyhu a day ago

Moving by default would be too much of a footgun without a borrow checker imo.

hgomersall 16 hours ago | parent | next [-]

I think using a language without a borrow checker is already a massive footgun (albeit less of one for GC/RC languages). More sensible move semantics would still be a big ergonomic improvement.

kccqzy 11 hours ago | parent | prev [-]

I think the language allowing use-after-move is honestly a smaller footgun than allowing using uninitialized memory or use-after-free. C++ already has the latter.