3 ms·
Yes, the compiler will remind you if you haven't cleaned up a value of linear type. The 'no destructor' rule follows the 'no hidden flow' design, similar to Zi
by olodus 3y ago
Yes, the compiler will remind you if you haven't cleaned up a value of linear type.
The 'no destructor' rule follows the 'no hidden flow' design, similar to Zig. Some doesn't like it, but personally I prefer it.
- solomatov 3y agoYep, I agree with you that it's better to be explicit than implicit here. Initialization/destruction order is often tricky, and source of obscure bugs.