Dominic
Jan 24, 2022

This is the same as rust's match statement, I quite like it actually 😅 in rust you can also assign the result to an lvalue and it looks cleaner than a nested ternary or if/else if/else

Dominic
Dominic

Written by Dominic

Tech fatigue? Nope. I love reading about new frameworks and languages and dabbling

No responses yet