Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-add require and assert #1762

Closed
chriseth opened this issue Mar 8, 2017 · 3 comments
Closed

Re-add require and assert #1762

chriseth opened this issue Mar 8, 2017 · 3 comments
Assignees

Comments

@chriseth
Copy link
Contributor

chriseth commented Mar 8, 2017

  • require(bool): calls revert() if the argument is false
  • assert(bool): invalid opcode if argument is false
@chriseth
Copy link
Contributor Author

chriseth commented Mar 8, 2017

require might receive an argument for an explanation message or error code in the future

@axic
Copy link
Member

axic commented Mar 10, 2017

I'm not sure if we had thought about expect.

@axic
Copy link
Member

axic commented Mar 14, 2017

According to thesaurus.com:

Synonyms for ensure
verb guarantee; make secure

Synonyms for expect
verb believe strongly; anticipate

Synonyms for require
verb need, want

Synonyms for assume
verb believe, take for granted

Synonyms for assert
verb insist, declare, maintain

Maybe we should look at dictionaries more often to make decisions quicker :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants