The guard pattern can be achieved really easily and cleanly in #rustlang using the let-else syntax. If you're trying to be a never-nester it definitely beats a bunch of if-lets.
3 likes 0 replies
?
The guard pattern can be achieved really easily and cleanly in #rustlang using the let-else syntax. If you're trying to be a never-nester it definitely beats a bunch of if-lets.
3 likes 0 replies