Stijn
MModular
•Created by Stijn on 4/1/2024 in #questions
Parameters style guide
I noticed that the style guide (https://github.com/modularml/mojo/blob/4d0b45f74fbcf883c63603a762b0c5c3a11895ed/stdlib/docs/style-guide.md) Is recommending PascalCase for parameters that are values:
Can any of the modular people confirm that this is the headed direction?
To be honest, I wasn't really doing this for values and it is really confusing with Types and Structs in my opinion.
I also noticed the stdlib isn't following this, and even the docstrings example a couple of lines further of the style guide isn't.
11 replies
MModular
•Created by Stijn on 10/22/2023 in #questions
redefinition of symbol named '$< ... >'
A compiler error that took me a while to figure out. So happy to share how to solve this.
Error:
Caused by empty files in a mojo module
Even if you delete the activations.mojo file now the compiler gets stuck in the same error. So you have to first clear the compiler cache:
delete
~/.modular/.mojo_cache
6 replies
MModular
•Created by Stijn on 10/2/2023 in #questions
cannot be copied into its destination
Hi 👋 ,
I want to extend my matrix class with the transpose functionality
But i get:
I experience similar behaviour when trying to return something of type Matrix, in other functions as well.
Any idea on how to overcome this?
4 replies