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
Should @view or @views be extensible to other things besides ref (getindex) expressions? For example, @views could change every function call f(...) into:
which packages could overload to add view support for their functions on selected argument types.
For example, as I commented in another #37367, numpy.flip returns a view, which is much faster than explicitly computing reverse and is sufficient for many if not all usages of reverse; it might be natural for @views to change reverse calls on array arguments into view constructors.
The text was updated successfully, but these errors were encountered:
Should
@view
or@views
be extensible to other things besidesref
(getindex
) expressions? For example,@views
could change every function callf(...)
into:which packages could overload to add view support for their functions on selected argument types.
For example, as I commented in another #37367,
numpy.flip
returns a view, which is much faster than explicitly computingreverse
and is sufficient for many if not all usages ofreverse
; it might be natural for@views
to changereverse
calls on array arguments into view constructors.The text was updated successfully, but these errors were encountered: