-
Notifications
You must be signed in to change notification settings - Fork 10
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
Implement Pattern Matching #36
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I really don't feel that Exceptions serve to enhance the understandability of a program's flow of control. So I don't want to build Claro around exceptions. Instead, I think procedures should return error values in results so that programmers can directly check for success. This leads to some super gross code without pattern matching, so for this reason alone I find enough justification to implement pattern matching. As an incredible bonus, Claro will also get the incredible expressivity that pattern matching gives a language in the general case, not even considering error handling.
Should look something like Rust syntax: https://doc.rust-lang.org/book/ch18-03-pattern-syntax.html
The text was updated successfully, but these errors were encountered: