Phazer
MModular
•Created by Phazer on 2/2/2024 in #questions
Store Reference in struct
Is there an example on how to create a struct with a Reference field?
18 replies
MModular
•Created by Phazer on 12/15/2023 in #questions
Traits
Reading the current documentation about Mojo traits, they seem more like Java/C# interfaces that has to be implemented at type definition. Is there any plan for something similar to Rust traits/Swift protocols which can be implemented both at type and trait definition sites? They can also have mutiple implementations for non-overlapping subsets of concrete types of a generic type depending on some type parameter bound.
1 replies
MModular
•Created by Phazer on 9/14/2023 in #questions
Thread safety
Mojo looks very interesting! Are there any plans to statically prevent data races like what Rust does with the Send/Sync traits (in combination with the borrow checker)?
3 replies