Skip to content

Disallow Void as type parameter (opt in/out) #9970

Description

@kevinresol

I found myself adding the NotVoid constraints to every type parameters which is not very convenient. I would prefer disallowing Void as type parameter altogether, with an opt in/out mechanism for people to choose.

p.s. From HaxeFoundation/haxe-evolution#76 I think the direction is to have an unit type and I think we are going to have haxe.NoData so I guess it makes sense to disallow Void

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions