Skip to content

Add optional inspect and unwrap operations #28

Description

@itsfuad

Goal

Finish user-facing operations for ?T.

Scope

  • Choose syntax for unwrap/check: unwrap operator, is none / is some, or pattern form.
  • Add control-flow narrowing only after syntax is settled.
  • Keep source semantics independent from niche/tagged backend layout.

Validation

  • Typechecker tests for unwrap/check.
  • HIR/MIR/backend tests for branching and unwrap.
  • Smoke tests for both none and some paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlanguage-modelPeeper language model, ownership, pointer, optional, array/slice workruntime-loweringHIR/MIR/backend runtime lowering work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions