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
T[] already has an implicit conversion to ReadOnlySpan<T>, so this is an inconsistency between ImmutableArray<T> and T[]. I understand that there is a risk of breaking overload resolution by adding an implicit conversion, though.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Why is there no implicit conversion from
ImmutableArray<T>
toReadOnlySpan<T>
?I found this issue, but somehow the full API proposal missed the implicit conversion mentioned in the head of the issue.
T[]
already has an implicit conversion toReadOnlySpan<T>
, so this is an inconsistency betweenImmutableArray<T>
andT[]
. I understand that there is a risk of breaking overload resolution by adding an implicit conversion, though.Beta Was this translation helpful? Give feedback.
All reactions