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

Consider providing attribute initializers for elements where the attribute cannot be used elsewhere #135

Open
tonyarnold opened this issue Jun 30, 2023 · 0 comments

Comments

@tonyarnold
Copy link
Contributor

tonyarnold commented Jun 30, 2023

As the title says, there are attributes where it could make sense to provide conveniences for setting them up, ie:

Form { }
  .method()

// versus

Form(method: ) { }

I'm not suggesting removing the .method(…) modifier, but if it always needs to be specified, it may be cleaner in use to allow specifying it at the point of creation. I'm sure there are other elements where this makes sense.

I'm also aware of the attributes parameter, but that provides no type-safety.

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

No branches or pull requests

2 participants