Skip to content

Support constructor rules #1

@krtek4

Description

@krtek4

It would be really great to be able to deconstruct something based on its type. For example in Haskell

 h :: Maybe Int -> Int
 h x = case x of
         Just n -> n * 100
         Nothing -> 0

Not sure it is possible tho as we don't have an universal method to access the value inside a type.

Maybe some kind of interface the type must implement ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions