They say assert
is mostly for the use of code analyzers to detect logical bugs in our contracts, but why it consumes the remaining gas too?
Couldn't we use a new keyword, that does the same( just like require
), but doesn't consume the remaining gas?
Isn't it better to spend less gas as possible? Shouldn't Solidity make some changes to it's functions?
I just don't get the purpose(as every answer was just specifying that assert is for checking things that are meant to be true forever, and require is for checking inputs of user; but it's not my answer).