News for hackers. Stuff that matters.
Re:Higher RAII and the seven arcane uses of linear types by 3836293648 on Tuesday May 14, 2024 @10:01PM (#40362318)
Have you considered that the whole destructors with multiple arguments thing is more elegantly done with just making the zero argument destructor private and having a wrapper function in the proper module as the only way of accessing it.

Based more on the linked podcast than the current article

Re:Higher RAII and the seven arcane uses of linear types by verdagon on Tuesday May 14, 2024 @10:04PM (#40362334)
You're exactly right, and that's kind of what Vale's `destruct` is, if you squint.