Sesterl icon indicating copy to clipboard operation
Sesterl copied to clipboard

Support Erlang Guard expressions

Open michallepicki opened this issue 4 years ago • 0 comments

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).

michallepicki avatar Dec 04 '21 08:12 michallepicki