Skip to content

Exhaustive pattern matching for variants and poly variants. #253

Closed
@amiralies

Description

@amiralies
recording.mp4

Example from scala. I'm not sure how this should be done. scala has advantage of match keyworkd coming after target expression so can decide to show that snippet based on that. can we do this with opening brace?
for example

type user = Owner | Admin | User

let isSuperUser = (user: user) => switch user { // show snippet

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions