Skip to content

[DOCS] Show a good example of extending a facet #202

@mudgen

Description

@mudgen

Documentation Issue

Create and show a good example at the end of the "Extending Facets" section of the documentation here: https://compose.diamonds/docs/design/design-for-composition

Recommended change

The example should show an example of how to correctly extend an existing facet. It should show the reuse of a struct from another facet, and remove one or more unused variables at the end of the struct. It should follow the earlier sections about writing facets and libraries and follow the design of compose. At the end it should give a summary of what it does, like bullet points showing how it is following the guide on writing facets and extending them.

Location

The file to edit in the repo is here: https://github.com/Perfect-Abstractions/Compose/blob/main/website/docs/design/design-for-composition.mdx

Helpful Information

Have a question? Please check our contribution guide first - your answer might already be there!

Want to discuss something? For general questions, ideas, or brainstorming, please browse our discussions or start a new one.

You can also join our Discord to discuss the documentation issue.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions