by Glench · 5y ago · 0 comments
Basically the designers saw how easily many Ethereum/Solidity contracts were hacked and saw that stateful side effects were the main culprit so they made their language have no side effects! Pretty cool.
My CS knowledge got really rusty, but I think it should be possible to put tight bounds on the computational cost of these, as well as statically guarantee that certain states cannot be reached, both of which would be very valuable in this case.
Yeah, I doubt that
Functional programming might makes it easier to detect flaws in your programs, but when there is billions at stakes and no recourse in case of a bug, you really want your program to be flawless.