News for hackers. Stuff that matters.
Re:The Lx Programming Language by Shoop on Friday November 01, 2019 @07:55PM (#21424925)
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
Re:The Lx Programming Language by codetrotter on Friday November 01, 2019 @10:42PM (#21425566)
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
Re:The Lx Programming Language by RossBencina on Saturday November 02, 2019 @07:03AM (#21426989)