aiken/crates/aiken-lang
KtorZ 44eb501d78
Favor pattern-match over if-else when parsing assignment kinds
Equality on a union-type is potentially dangerous as the compiler won't
complain if we add a new case that we don't cover. Reversing the
assignment by yielding a `Token` for a given `AssignmentKind`. This way
we can use a pattern-match that got us covered for future cases.
2023-07-05 14:01:13 +02:00
..
src Favor pattern-match over if-else when parsing assignment kinds 2023-07-05 14:01:13 +02:00
Cargo.toml feat: finish splitting up parsers 2023-07-04 17:19:28 -04:00