buzz-language / buzz

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

`catch void` to ignore error when type is void #83

Closed giann closed 2 years ago

giann commented 2 years ago
fun willFail() > void !> str {
    throw "fail";
}

fun main([str] args) > void {
    willFail() catch void;
}