Remove ty_nil and replace with zero-length tuple #18614
Labels
A-type-system
Area: Type system
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
Distinguishing zero-arity tuples as
nil
causes annoying discontinuities in the compiler. We should removety_nil
and just usety_tup
with a zero-length list of types. I tried to do this, though, and encountered errors in the exhaustiveness checker that I did not understand.The text was updated successfully, but these errors were encountered: