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

Provide binder for composed views #22

Open
bastian-koepcke opened this issue Apr 23, 2023 · 0 comments
Open

Provide binder for composed views #22

bastian-koepcke opened this issue Apr 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@bastian-koepcke
Copy link
Member

In order to not having to write a repeating composition of views every time it is used, provide a binder that enables binding composed views. This is similar to defining a function and requires a signature and body Since the body does not contain sequencing, we write = instead of a function body { .. }.

view view_name<generic_args: k...>(param_name: T, ..., input_view: [[U; n]]) -> T = input_view.v.v...
  • Parameters can have a data type or a view-function type.
  • The last parameter must be for the array view that is transformed. It therefore has an array view type.
  • Special syntax definition for view function body?
  • introduce type checking rule for composition of (view) functions .?
@bastian-koepcke bastian-koepcke added the enhancement New feature or request label Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant