You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess one could assume that whoever interacts with code is smart enough to realize velocity is a vector, might also hold for other things.
But then I do would prefer _arr, for consistency also with other lists of number and other code basis
In Julia, Vector is the type used for 1D arrays and Matrix the type for 2D arrays. Therefore I suggest to use the suffix _vec for a 1D vector, which should also be changed everywhere else in the code.
This branch does the first box only: every untyped empty container (vertices = [], plots = [], ...) gets its element type, in src, the Makie extension, tests and an example. The two renames are stacked follow-ups: #336 (*_array → vector/matrix) and then #337 (one va convention, which starts by asking about the public va=/v_a= keywords).
First part (typed empty containers) is e971c74 on agent/147-refactoring-part-iii, whose PR opens with this turn. The two renames are queued as #336 (*_array) and #337 (va).
Activity
1-Bart-1 commentedon Mar 27, 2025
I like
va, as it looks better inva_array,_va, etc.ufechner7 commentedon Mar 27, 2025
The point is, they have different meanings, so we will need different names:
My suggestion:
@jellepoland Any comment?
Jelle wrote on Telegram:
In Julia, Vector is the type used for 1D arrays and Matrix the type for 2D arrays. Therefore I suggest to use the suffix _vec for a 1D vector, which should also be changed everywhere else in the code.
1-Bart-1 commentedon Mar 27, 2025
We have talked about this before on telegram, as long as the naming is consistent everywhere your suggestions are fine.
1-Bart-1 commentedon Sep 16, 2026
@1-Bort-1 implement consistent and readable naming in this package.
1-Bort-1 commentedon Sep 16, 2026
This branch does the first box only: every untyped empty container (
vertices = [],plots = [], ...) gets its element type, in src, the Makie extension, tests and an example. The two renames are stacked follow-ups: #336 (*_array→ vector/matrix) and then #337 (onevaconvention, which starts by asking about the publicva=/v_a=keywords).1-Bort-1 commentedon Sep 16, 2026
First part (typed empty containers) is e971c74 on agent/147-refactoring-part-iii, whose PR opens with this turn. The two renames are queued as #336 (
*_array) and #337 (va).