3 ms·
Why didn't they choose at least pure functional language for smart contracts? Imo that would reduce the amount of dramas...
by viach 9y ago
Why didn't they choose at least pure functional language for smart contracts? Imo that would reduce the amount of dramas...
- tytytytytytytyt 9y agoHow would it have done that?
- viach 9y agoNo mutable state, no objects, just one way flow of data transformation. For example https://www.fstar-lang.org https://www.fstar-lang.org
- 6nf 9y agoIt would not have stopped this particular bug. The problem here is that the 'destructor' method was open to anyone to execute, when really it should have been restricted to the creator / owner only. They exposed a call to the public that should have been 'private'