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

Support Erlang Guard expressions #61

Open
michallepicki opened this issue Dec 4, 2021 · 0 comments
Open

Support Erlang Guard expressions #61

michallepicki opened this issue Dec 4, 2021 · 0 comments

Comments

@michallepicki
Copy link
Contributor

michallepicki commented Dec 4, 2021

I think it would be great if at least some of the Guard Expressions could be used in Sesterl pattern match clauses. I would very much welcome mainly arithmetic, boolean, short-circuting expressions and comparisons.

It probably doesn't make much sense to support type guards (maybe code generator could insert them some day when concrete types are present if it proves beneficial to performance in benchmarks thanks to Erlang JIT's future type-guided optimizations, there aren't that many of them yet).

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

No branches or pull requests

1 participant