←back to thread

311 points melodyogonna | 1 comments | | HN request time: 0s | source
Show context
lordofgibbons ◴[] No.45143335[source]
I'm the primary target audiance for Mojo and was very interested in it, but I just wish they didn't keep Exceptions. This backwards compatibility with Python syntax is extremely overrated and not worth the cost of bringing language warts from the 90s.

God, I hate exceptions so much. I have never seen anyone use exceptions correctly in either Java (at FAANG) or in any regular Python application.

I'm much more in favor of explicit error handling like in Go, or the syntax sugar Rust provides.

replies(2): >>45144494 #>>45145537 #
1. chrislattner ◴[] No.45145537[source]
Exceptions in Mojo are just syntax sugar for Result types. You don't have to use them if you don't want, and the overhead is not like C++ exceptions.