bichanna / slap

🖐 A dynamically- and strongly-typed, object-oriented programming language
https://bichanna.github.io/slap/
MIT License
33 stars 0 forks source link

Should I create an Error type? #50

Closed bichanna closed 2 years ago

bichanna commented 2 years ago

Do you think I should implement some kind of error type so that we can do try-catch or try-except blocks?

try {
    println(100 / 0);
} except(DivideByZeroError) {
    print("Cannot divide by zero");
}