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

Add type annotations to the gem #96

Open
mvgijssel opened this issue Jul 9, 2019 · 0 comments
Open

Add type annotations to the gem #96

mvgijssel opened this issue Jul 9, 2019 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@mvgijssel
Copy link
Collaborator

Sorbet allow for static (and runtime) analysis of Ruby code by adding type annotations. This can be leveraged to get rid of a lot of switch statements like:

case some_var
when 1
else
  boom "some execption"
end

The Sorbet runtime consistently warns when an unexpected branch is reached.

@mvgijssel mvgijssel added the enhancement New feature or request label Jul 9, 2019
@mvgijssel mvgijssel added this to the 1.0.0 milestone Jul 9, 2019
@Willianvdv Willianvdv removed their assignment Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants