issues
search
aiken-lang
/
aiken
A modern smart contract platform for Cardano
https://aiken-lang.org
Apache License 2.0
474
stars
92
forks
source link
Allow pattern-matching on bytearrays
#991
Closed
KtorZ
closed
2 months ago
KtorZ
commented
2 months ago
Preview
Source code
Compiler output
Remarks
Doesn't allow pattern-matching on G1/G2 elements and strings, because the use cases for those is unclear and it adds complexity to the feature.
We still
parse
patterns on G1/G2 elements and strings, but emit an error in those cases.
The syntax is the same as for bytearray literals (i.e. supports hex, utf-8 strings or plain arrays of bytes).
Preview
Remarks