Getting rid of `CNil`
This is a follow up issue to #93.
I think we should get rid of special uninhabited types unless we have a particularly good reason to keep them. The standard library is in the process of getting rid of Infallible and other uninhabited types.
So I think we should replace CNil and Here with just !.
Thoughts?
Please do not replace Here with ! because I plan to turn it into a unit struct. (for reified indices)
@ExpHP Ah right; sounds like a good idea =)
Interesting; I guess the empty enum trick has fallen out of fashion :)
Here aside, should we wait until ! as a type is stabilised before going ahead with getting rid of CNil? I'm not fully sure if it's done yet because these are still open
- https://github.com/rust-lang/rust/issues/35121#issuecomment-366372239
- https://github.com/rust-lang/rust/issues/48950
Yeah, I think we should wait until it is stabilised.