Skip to content

sum types, recursive types, algebraic datatypes #256

@dckc

Description

@dckc

I was excited by the prospect that mypy would bring algebraic data types to python...

"A general algebraic data type is a possibly recursive sum type of product types."

The tuple type is clearly a product type, and mypy has union types, but the tutorial makes them look like something other than ordinary sum types.

http://www.mypy-lang.org/tutorial.html#uniontypes

Are sum types and recursive types planned?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions