Skip to content

Add type annotations to the gem #96

@mvgijssel

Description

@mvgijssel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions