Proposal: Allow ROS<byte> v = [] + ""u8
#9496
Unanswered
am11
asked this question in
Language Ideas
Replies: 1 comment 4 replies
-
It looks like spreads would do what you are asking for
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What works today:
What doesn't work:
error CS0019: Operator '+' cannot be applied to operands of type 'collection expressions' and 'ReadOnlySpan<byte>'
In practice, this means we have to give up the nice u8 syntax when a binary prefix is required (e.g. https://github.com/dotnet/runtime/blob/b7f05cd78da27007f3dc378696697c0268251a58/src/installer/managed/Microsoft.NET.HostModel/Bundle/Bundler.cs#L237).
Beta Was this translation helpful? Give feedback.
All reactions