Skip to content
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

match for literal -1 does not compile #194

Closed
clkao opened this issue Oct 30, 2012 · 1 comment
Closed

match for literal -1 does not compile #194

clkao opened this issue Oct 30, 2012 · 1 comment

Comments

@clkao
Copy link
Contributor

@clkao clkao commented Oct 30, 2012

match it
| -1 => -1
| otherwise => 0

should work

@gkz gkz closed this in a4f3379 Oct 30, 2012
@vendethiel
Copy link
Contributor

@vendethiel vendethiel commented Nov 15, 2012

Is there a way to mean a no-callee ? Like this :

match a
| i+0 => 2
| +i => 1
| ~b => true 

or something else.

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

Successfully merging a pull request may close this issue.

None yet
3 participants