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
Currently common protocol methods like translate, scale and the various basic vector math ops allow specifying coordinate args as vectors or individual coords, e.g.
in some cases avoids construction of temp vectors, though most internal usage doesn't make use of this arity option, since args are mostly vectors already
Cons:
considerable additional effort required for maintaining 3-arities of each implementation
currently missing implementations of this aritiy in various types
extra argument type checking required for last case
Proposal:
remove protocol 4-arg arity (w/ individual coords) from protocols and enforce usage of vector args
Thoughts?
The text was updated successfully, but these errors were encountered:
Currently common protocol methods like
translate
,scale
and the various basic vector math ops allow specifying coordinate args as vectors or individual coords, e.g.About the last case:
Pros:
Cons:
Proposal:
Thoughts?
The text was updated successfully, but these errors were encountered: