In a current discussion about single element tuples there was mention of this thread, and a suggestion to use \.0
as the identity keypath element, here.
This would effectively be coercing T
to an unlabeled single element tuple (T)
getting it's first element, and coercing back to T
, except unlabeled single element tuples don't exist.
And even labeled single element tuples only exist in some parts of the compiler.
2 Likes