buzz-language / buzz

👨‍🚀 buzz, A small/lightweight statically typed scripting language
https://buzz-lang.dev
MIT License
1.2k stars 34 forks source link

Remove inline catch switch #76

Closed giann closed 2 years ago

giann commented 2 years ago

Before we implemented try { .. } catch, this was the only way to do something for each type of error. Now willFail() catch defaultValue and try/catch should be enough to handle everything.