Skip to content

Add examples of diverging functions #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
japaric opened this issue Jul 1, 2014 · 2 comments
Closed

Add examples of diverging functions #146

japaric opened this issue Jul 1, 2014 · 2 comments

Comments

@japaric
Copy link
Member

japaric commented Jul 1, 2014

Explain why we can do these "weirds" things:

let a: int = return

let y: int = match x { true => 1, false => break };

@japaric japaric added the C-new label Jul 1, 2014
@japaric japaric mentioned this issue Jul 1, 2014
52 tasks
@steveklabnik
Copy link
Member

This isn't the bottom type, it's a diverging function.

@steveklabnik steveklabnik changed the title Add example about the bottom type ! Add examples of diverging functions Sep 14, 2017
@steveklabnik
Copy link
Member

I'd be happy to mentor anyone who wants to work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants