Skip to content

Void type library for explicit typing of methods whose return values must be disregarded #83

@sbellware

Description

@sbellware

EG: Substitute methods that set the error raising indicator

def raise_some_error!
  @raise_some_error = true
  Void
end

The Void constant raises a void invocation error if any method is invoked on it, including all built-in methods all the way up to Kernel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    considerationPotential to be an improvement or feature but needs more thought.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions