HaxeFoundation / HaxeFoundation/haxe

Disallow Void as type parameter (opt in/out)

Open
#9,970 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

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 https://github.com/HaxeFoundation/haxe-evolution/pull/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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.