Skip to content

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

Open
@tonyarnold

Description

@tonyarnold

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions