Skip to content

Add contextual enum variant construction and inference #94

Description

@itsfuad

Track deferred enum ergonomics after fully named v1 construction.

Delivered prerequisite

Remaining scope

  • Contextual .Variant construction when enum type is known.
  • Contextual inference of generic enum arguments.

Excluded

Activity

  1. itsfuad commented on Aug 28, 2026

    @itsfuad
    MemberAuthor

    Contextual .Variant construction is not planned because it overlaps visually with structural literal syntax. Peeper will retain explicit Enum::Variant construction as canonical, including explicit generic arguments such as Result<i32>::Ok and imported paths such as module::Result<i32>::Ok. No compiler change is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions