News for hackers. Stuff that matters.
Re:Austral Programming Language by lelanthran on Friday July 28, 2023 @04:44AM (#36904361)
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.

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.