Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: Deprecate old parameter block syntax #3447

Open
andrevidela opened this issue Dec 17, 2024 · 0 comments
Open

RFC: Deprecate old parameter block syntax #3447

andrevidela opened this issue Dec 17, 2024 · 0 comments

Comments

@andrevidela
Copy link
Collaborator

andrevidela commented Dec 17, 2024

I'd like to get the opinions of the community on the current parameter block syntax.

Currently, there are two syntaxes for parameter blocks:

parameters (n1 : t1, n2 : t2, n3 : t3, ...)

This syntax has been replaced by

parameters (0 n1 : t1) {n2 : t2} {auto n3 : t3} (n4, n5, n6 : t4) ...

The old syntax makes it easier to declare series of explicit arguments, but does not allow for implict arguments, or for quantities to be specified. It does not allow multiple names to be bound to the same type either. Finally, it's a syntax form that is not seen anywhere else.

The new syntax allows for quantities to be written, and for implicit arguments to be defined. It mimics the syntax for record parameters/indices.

The question is then: Should we keep supporting the old bespoke syntax, or should we push toward using the more flexible syntax?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant