4 ms·
> Solidity reads a bit like Javascript. It has a lot of quirks and pitfalls, though, especially when it comes to moving money around. But isn't that, like, the
by MrBingley 9y ago
> Solidity reads a bit like Javascript. It has a lot of quirks and pitfalls, though, especially when it comes to moving money around.
But isn't that, like, the whole point of the language? It was literally written for moving money around. Cripes.
> Be very careful if writing real money-transfer code; do your security homework, get others to review your code, and seriously consider an official security audit or even formal verification.
Amen.
- naveen99 9y agoWhat's an official security audit ? You mean pay a 3rd party to do it / sell off the liability.
- derefr 9y agoEthereum's "quirks and pitfalls" are a result of people coming into it thinking that their mental execution model of most normal programming languages will suffice, when the execution model of the Ethereum VM is quite different (precisely because it is "written for moving money around", but also because its computations are only run by the will of random miners, who like to get paid.) Once you understand the Ethereum abstract machine (i.e. the thing described in the http://yellowpaper.io http://yellowpaper.io), the "quirks and pitfalls" of the programming languages built on it (Solidity, LLL, Serpent, Mutan) become more like obvious design constraints.
- Karrot_Kream 9y agoAgreed. I'm not a JS fan by far, but I don't see anything wrong with Solidity (nor am I a huge fan). The Solidity pitfalls are just the pitfalls offered by the EVM. I agree that tooling should improve to highlight potential failures, but to treat Solidity like JS is a mistake.