5 ms·
In case anyone doesn't know, the Julia convention is: UpperCamelCase: modules & types snake_case: variables and functions This convention is shared, for exam
by dnautics 8y ago
In case anyone doesn't know, the Julia convention is:
UpperCamelCase: modules & types
snake_case: variables and functions
This convention is shared, for example, with elixir (also FP Lang)
Also bang_functions! By convention, not enforced, indicate that the function may mutate one of its passed parameters. (Taken from Ruby's "be careful with this member function" idiom)
@at_sigil: macros (enforced by the language)
- idunning 8y agoIts also very similar to many opinionated Python style guides (minus the !, and where @ is used for decorators [which are a bit meta like macros])
- simen 8y agoRuby uses the same convention. (excluding macros, and adding question_mark_predicates?) I've seen C++ projects that adopt the same style. I don't see what's so objectionable about it.