Hacker News new | ask | show | jobs
by hackyhacky 87 days ago
That wouldn't work because there would be nothing stopping you from re-using a value representing an old state.
1 comments

That's exactly what affine / linear types do.