M
Modular9mo ago
Thicket

What's the status of Mojo for compile-time validation?

It sounds like there's great stuff going on in Mojo to bring some of Rust's memory safety guarantees without as much conscious effort as Rust requires. I'm curious about compiling a (well-annotated) Mojo program. To what extend Mojo does catch errors (type mismatches, say) on compile the way a statically typed language does? If that's not happening these days, does anybody know where that is on the roadmap?
3 Replies
mad alex 1997
mad alex 19979mo ago
fn type functions require type matches def functions don't. There will be compile time errors if you use the wrong type in a function.
Thicket
ThicketOP9mo ago
Thanks, mate!
sora
sora9mo ago
Or simply, Mojo is a statically typed language.

Did you find this page helpful?