3 ms·
Refutable lets also work in `while` (`while let pattern = expression { … }`), which is pretty great.
by masklinn 12y ago
Refutable lets also work in `while` (`while let pattern = expression { … }`), which is pretty great.
- aethertap 12y agoI just rewrote one of my parser functions using that, and it literally eliminated 90% of the code and improved error reporting at the same time. Very cool, thanks for the tip.