3 ms·
This is nice. It does seem mutually exclusive with any early return though, like exceptions. On the phone now so I only read the page on linear types, but will
by lelanthran 3y ago
This is nice. It does seem mutually exclusive with any early return though, like exceptions.
On the phone now so I only read the page on linear types, but will look at this closer when back at my desk.
In my own language I am considering destructors purely so that early returns are viable. I'd like to see if there is any alternative to destructors that aren't 'defer' or similar.
- JonChesterfield 3y agoExceptions and linear types are difficult to combine. Implicit destruction is fine though, provided destruction can't fail.