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

VIP: Allow raise without reason string #1902

Closed
iamdefinitelyahuman opened this issue Mar 25, 2020 · 1 comment · Fixed by #2050
Closed

VIP: Allow raise without reason string #1902

iamdefinitelyahuman opened this issue Mar 25, 2020 · 1 comment · Fixed by #2050
Labels
VIP: Approved VIP Approved

Comments

@iamdefinitelyahuman
Copy link
Contributor

Simple Summary

Allow use of raise without a reason string.

Motivation

  1. I see no technical reason to enforce requiring a revert string. A bare raise statement is parseable.
  2. Requiring a reason for raise but not assert is inconsistent.
  3. The requirement is easily circumvented:
assert False

Specification

Fairly self-explanatory. The following syntax should compile:

if cond:
    raise

Backwards Compatibility

Will not cause any issues.

Copyright

Copyright and related rights waived via CC0

@fubuloubu fubuloubu mentioned this issue Mar 25, 2020
3 tasks
@charles-cooper
Copy link
Member

I'm on board with this

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

Successfully merging a pull request may close this issue.

3 participants