Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Shoop
· 7y ago · 0 comments
The thing you are referring to with open and closed files is called typestate. Check out its implementation in the Plaid programming language:
http://www.cs.cmu.edu/~aldrich/papers/onward2009-state.pdf
Comments
[–]
codetrotter
7y ago
There was a post here on HN about typestates in Rust too yesterday. For anyone that didn’t see it:
https://news.ycombinator.com/item?id=21413174
[–]
RossBencina
7y ago
See also:
https://edwinb.wordpress.com/2016/10/21/state-machines-all-t...