Should all singleton types be constructible with T()
?
#47853
LilithHafner
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Trivial singleton types declared with
already support
T()
. Nontrivial singleton types such asTuple{Nothing}
andReverseOrdering{ForwardOrdering}
do not. Nevertheless, the only instance ofTuple{Nothing}
is(nothing,)
. Should we return that instance rather than throw onT()
for all singleton typesT
?This PR is a special case of this.
Beta Was this translation helpful? Give feedback.
All reactions