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

Implement Pattern Matching #36

Open
JasonSteving99 opened this issue May 3, 2022 · 0 comments
Open

Implement Pattern Matching #36

JasonSteving99 opened this issue May 3, 2022 · 0 comments
Projects

Comments

@JasonSteving99
Copy link
Owner

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

@JasonSteving99 JasonSteving99 created this issue from a note in Claro Lang (High priority) May 3, 2022
@JasonSteving99 JasonSteving99 moved this from High priority to Low priority in Claro Lang May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Claro Lang
Low priority
Development

No branches or pull requests

1 participant