A type for functions that never return #3044
manveru
started this conversation in
Ideas & suggestions
Replies: 3 comments 8 replies
-
I'd be open to this addition! I believe we once had an issue for it. We need to work out the exact semantics, it'll be different from any type we have so far. |
Beta Was this translation helpful? Give feedback.
6 replies
-
I am cooking up the Never type rn |
Beta Was this translation helpful? Give feedback.
0 replies
-
https://hexdocs.pm/funtil/funtil.html#Never not good enough? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It might be a good idea to have a type for functions/expressions/keywords that never return? So one could write:
This would have to be supported at the language level to be truly helpful, by warning about code coming after it, since it won't ever execute it.
Beta Was this translation helpful? Give feedback.
All reactions