Skip to content

support factory-function in .default() ? #363

@Bartvds

Description

@Bartvds

As the readme notes using an reference-type as the value for default makes the same instance shared by all invocations, which is not that useful.

Would it be an idea to allow a function as value, to be called when a new default value is needed so it can produces a new instance?

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions