4 ms·
This reminds me of 'Poya-Yoke', which is (as I understand it) about making accidents less likely by design. Functions should be carefully chosen to be externall
by CJefferson 9y ago
This reminds me of 'Poya-Yoke', which is (as I understand it) about making accidents less likely by design. Functions should be carefully chosen to be externally visible, so why not make internal the default. When designing contracts, the language should be making every possible effort to be safe by design.
- jjallen 9y agoTotally agree about making `internal` the default visibility for Solidity/EVM functions. Should also require visibility to be declared (right now just compiler warnings happen).
- pmoriarty 9y agoRelated to this is the maxim to "make it easy to do the right thing, and difficult to do the wrong thing". When applied to programming, a first step towards that could be as simple as using a safer language, where it's more difficult to shoot oneself in the foot, and where all sorts of errors are prevented by default.