bonobo-lang / bonobo

Strongly-typed, safe, opinionated systems language that compiles to C.
https://bonobo-lang.github.io
Apache License 2.0
14 stars 1 forks source link

match vs when #78

Open thosakwe opened 6 years ago

thosakwe commented 6 years ago

match: Performs pattern matching on types. Might not even need function overloads. when: Analogous to switch.

Default case signaled by else in both cases.