How to catch zero division errors without checking in advance?
In python, It is able to with try..except.
num1 = 3
num2 = 0
try:
num1 / num2
"""
I know that it should be check before divide but I want to do
without check in advance.
"""
except ZeroDivisionError:
print("Divided by zero")
I understand that checking the divisor is better.
But I am looking for a way to without checking in advance in Rust.
How do I do this?