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
Who doesn't love StaticArrays.Dynamic() all over the place? However, this makes exceptions a bit hard to read, and also types a bit hard to enter.
As an alternative, I suggest using one of the two following names for I/O instead: - or :. (These names may either be used internally and converted to Dynamic() only when Size() is called; or Dynamic might be used internally, and show for types overloaded instead. Both approaches are quite similar. I believe the first one is less fragile though; I've been quite burnt with overloads of show).
: : pros: it already means a full dimension, so it feels like the natural choice. cons: it is displayed as Colon(), which is still somewhat cluttery.
-: pros: it maximally reduces the type clutter since Tuple{-,2} is displayed as just that. Also, - is already usual mathematician-speak for “left unspecified”. cons: feels slightly a bit less usual than : in Julia.
(My preference would go to - for these reasons).
The text was updated successfully, but these errors were encountered:
Who doesn't love
StaticArrays.Dynamic()
all over the place? However, this makes exceptions a bit hard to read, and also types a bit hard to enter.As an alternative, I suggest using one of the two following names for I/O instead:
-
or:
. (These names may either be used internally and converted toDynamic()
only whenSize()
is called; orDynamic
might be used internally, andshow
for types overloaded instead. Both approaches are quite similar. I believe the first one is less fragile though; I've been quite burnt with overloads ofshow
).:
: pros: it already means a full dimension, so it feels like the natural choice. cons: it is displayed asColon()
, which is still somewhat cluttery.-
: pros: it maximally reduces the type clutter sinceTuple{-,2}
is displayed as just that. Also,-
is already usual mathematician-speak for “left unspecified”. cons: feels slightly a bit less usual than:
in Julia.(My preference would go to
-
for these reasons).The text was updated successfully, but these errors were encountered: