Hacker News new | ask | show | jobs
by 3836293648 769 days ago
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

1 comments

You're exactly right, and that's kind of what Vale's `destruct` is, if you squint.