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

Access let-bound parameters in component signature using :: syntax #370

Open
rachitnigam opened this issue Oct 18, 2023 · 0 comments
Open
Labels
C: language Component: the Filament language S: discussion needed topic needs discussion

Comments

@rachitnigam
Copy link
Member

It would be nice and symmetrical to be able to access the let-defined parameters in a component's signature in the same way we access the some parameters:

comp Foo[N](...) with {
  some L;
  let Chunks = L / N;
} { ... }

comp main(...) {
  F := new Foo[10];
  let foo = F::Chunks;
}

This way the let parameter define a bunch of nice, generally useful parameters that callers of the module might also want to use.

@rachitnigam rachitnigam added S: discussion needed topic needs discussion C: language Component: the Filament language labels Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: language Component: the Filament language S: discussion needed topic needs discussion
Projects
None yet
Development

No branches or pull requests

1 participant