Name: Anonymous 2018-10-12 17:08
So, why are you not using dependent types yet? Do you like your programs randomly crashing?
instead of crashing, in Idris you have, print "Attempt to divide by zero!"You have to use
choose
only on user input. For non-user input you might not need to do that (so you will not need to have any print "Attempt to divide by zero!"
).which is literally no different than catching the exception and doing thatExcept that you might forget to catch said exception. "b-buuut the compiler will warn me!" - what if you pass a provably non-zero divisor? You will have to still catch the exception, which is retarded.