Make repeated arguments for sequence argument type annotation inline-able at Compile Time #17829
yuriy-yarosh
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now I'm a bit tired of being unable to use Repeated Argument Type Notation like so
It would be great for dotty to be able to inline Repeated Arguments in compile time and take into account the resulted gaps in the actual call expression.
It would also be wise to restrict this inlining notation for Compile Time Usage Only, because it will be misused at Runtime and will cause a lot of headache.
This kind of notation has a huge impact on table driven testing and protocol definitions.
(Developing a http/3 QUIC related project right now).
Thus my frames defs look like so
And it would be great if I could refactor such tables with more readable constructs like
For now I'm using scala staging to overcome this limitation, which isn't great.
Beta Was this translation helpful? Give feedback.
All reactions