BlueStyle
BlueStyle copied to clipboard
A Julia style guide that lives in a blue world
I'm finding the `92` line limit very restrictive and forcing breaks more often than not. Between giving a function a meaningful parameter name and typing it you're more often than...
Resolves: #78
Does anyone else wish we had a convention on ordering of functions in a file? I typically find putting private (more specific) functions further down in a file is more...
Sometimes one might want to do multiple assignments in a single line to reduce number of lines of code, e.g. ```Pmin, Pmax = get_pmin(fnm.system), get_pmax(fnm.system)``` If this is considered bad...
What's the recommendation for ``` T = Union{Int, String} ``` versus ``` T = Union{Int,String} ```
I can't actually find the bit that says to do: `foo(a, b)` not `foo(a,b)` Nor for `Union{A, B}` not `Union{A,B}` Maybe i am just missing it.
Based upon the discussion in https://github.com/domluna/JuliaFormatter.jl/issues/455 I think there may be some clarification needed on the use of trailing comma when multiple arguments are on the same line. The intent...
X-Posting:https://github.com/domluna/JuliaFormatter.jl/issues/459 for @omus
The style guide names the function `mysearch` rather than `my_search`.
> When using long-form functions always use the `return` keyword We may want adjust the the hard stance on using `return` with long-form functions. Some examples that adding in the...