Can't pattern match on bytearray #870
Replies: 5 comments
-
Why? What's the use-case here? Why can a pattern-match do than an |
Beta Was this translation helpful? Give feedback.
-
Sure, there's not much difference, just a matter of preference. EDIT: Feel free to close it in case you think otherwise |
Beta Was this translation helpful? Give feedback.
-
It could easily become a syntactic sugar. Not necessarily against the idea, but I like it when things are backed by a use-case
|
Beta Was this translation helpful? Give feedback.
-
The snippet I've given is to just display minimal example. But to give you a specific use case. |
Beta Was this translation helpful? Give feedback.
-
Let's add this in the next update too since it's easy. |
Beta Was this translation helpful? Give feedback.
-
What Git revision are you using?
aiken v1.0.24-alpha+982eff4
What operating system are you using, and which version?
Describe what the problem is?
The following code fails to compile:
With the following error message:
What should be the expected behavior?
I should be able to pattern match on ByteArray.
Beta Was this translation helpful? Give feedback.
All reactions