-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Strange behaviors of match's or pattern #975
Comments
Match is not well supported in Typed Racket, because it is too complicated. I would use
Though the behaviors of two expressions are the same, their fully expanded code is different. The first roughly amounts to
The second:
|
I would just say that it's |
Subtype may affect Following codes work:
print:
print:
But following codes fail:
error messages:
|
What version of Racket are you using?
v7.8
What program did you run?
Program 1:
Program 2:
Program 3:
What should have happened?
Print a procedure.
If I change
or
pattern to 2 different patterns inmatch
, the above codes will work properly.If you got an error message, please include it here.
Program 1: Why could
x
beFalse
type?Program 2: Why could
x
beSymbol
type instead ofVariable
type?Program 3: The program stucks in an endless loop.
The text was updated successfully, but these errors were encountered: