TausugRareBreed
TausugRareBreed
MModular
Created by gryznar on 12/3/2023 in #questions
Error handling like in Rust
I suspect it will need both. Once mojo gets Algebraic Data Types, you can create your own Sum types like rust's Option and Result. On the other for python compatibility, I would imagine mojo will need some form of Exception handling. If a cpython function is called and it throws an exception, I'm not sure how mojo would handle this. This also begs the question of other FFI boundary related questions (will mojo have a unsafe dual world?).
11 replies