Re:Never patterns, exhaustive matching, and uninhabited type...
by ChrisSD on Saturday August 18, 2018 @09:54AM
(#17788464)
Oh wow, I didn't know this. At one time at least it was recommended, which was why I did it.
[ Parent
| on HN ]
Re:Never patterns, exhaustive matching, and uninhabited type...
by bjz_ on Saturday August 18, 2018 @10:31AM
(#17788610)
Yeah, IIRC many years ago I added it in a document as a pattern for C APIs (I can't remember where though). Either other people were doing the same thing, or were influenced by that. Anyway, you should use `*const libc::void` these days! Sorry for the confusion.