ModularM
Modular2y ago
10 replies
Stijn

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:
fn value parameter    fn repeat[Count: Int]()          PascalCase

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.
GitHub
The Mojo Programming Language. Contribute to modularml/mojo development by creating an account on GitHub.
mojo/stdlib/docs/style-guide.md at 4d0b45f74fbcf883c63603a762b0c5c3...
Was this page helpful?