Re:Austral Programming Language
by JonChesterfield on Friday July 28, 2023 @05:00AM
(#36904471)
Exceptions and linear types are difficult to combine. Implicit destruction is fine though, provided destruction can't fail.
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.