I just read an article on Medium about the `never` type in TypeScript that is so painfully wrong on all levels,... I thought it might be LLM-generated but even those write better stuff 😞
Conversation
Notices
-
Embed this notice
Stefan Baumgartner (deadparrot@mastodon.social)'s status on Wednesday, 06-Mar-2024 05:12:48 JST Stefan Baumgartner -
Embed this notice
Sergey on FunctionalScript (functionalscript@techhub.social)'s status on Wednesday, 06-Mar-2024 05:12:48 JST Sergey on FunctionalScript @deadparrot correct me if I'm wrong, please: if a type is a set of possible values then the `never` type is an empty set.
-
Embed this notice