Internet Computer Developer Forum
How to avoid deeply nested switch statements?
Developers
Language Support
nomeata
September 19, 2021, 8:37am
3
For option types (but, unfortunately, not result) you can use
do ? { … }
blocks
.
show post in topic
Related topics
Topic
Replies
Views
Activity
Motoko wishlist
Language Support
Motoko
25
1366
May 15, 2023
Solution in moc 0.8.3: let else - "match" and "take" in motoko - do? for variants (was "when")
Language Support
25
1628
March 7, 2023
New Let Binding and Serialization Improvements: Motoko Updates
Language Support
Motoko
13
1367
April 3, 2023
Best Strategy for throwing/returning from an assignment switch/
Language Support
Motoko
5
471
June 30, 2021
Release Notes for V0.6.18
Developers
0
430
January 16, 2021