News for hackers. Stuff that matters.
Re:Haskell GHC 9.0.1-alpha by ivanbakel on Wednesday September 30, 2020 @06:47AM (#24637317)
> Are there are books/video lectures that explain linear types how they are useful in a programming language?

Just to throw out an example of how they are useful: loads of Ethereum contracts (e.g. every ERC20 variant) track a kind of private assets (tokens). A big class of bugs is double-spend or double-store of these assets, since any instance of that kind of behaviour completely invalidates the contract.

As it turns out, linear types[0] are just the tool to prevent those bugs.

[0]: https://github.com/flintlang/flint/blob/master/proposals/000...

There are no comments on this comment yet.