Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)



Ruby 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.


Its also very similar to many opinionated Python style guides (minus the !, and where @ is used for decorators [which are a bit meta like macros])




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: