|
|
|
|
|
by T-R
2811 days ago
|
|
Something to keep in mind - linear types are on their way[1], with exactly this usecase in mind. Simon Peyton Jones gave an excellent presentation on the topic[2], briefly discussing exceptions, as well as giving a mention to ResourceT and the phantom type solution in the article (described as channel-passing). [1] https://arxiv.org/abs/1710.09756
[2] https://www.youtube.com/watch?v=t0mhvd3-60Y |
|