Skip to content

Step 2.3: Bound behavior, not data#14

Open
ziimakc wants to merge 2 commits intomainfrom
2_3_bound_impl
Open

Step 2.3: Bound behavior, not data#14
ziimakc wants to merge 2 commits intomainfrom
2_3_bound_impl

Conversation

@ziimakc
Copy link
Copy Markdown
Owner

@ziimakc ziimakc commented Feb 7, 2026

Resolves Step 2.3

Task

Refactor the code contained in this step's crate to reduce trait bounds pollution as much as possible.

Solution

Reduced trait bounds pollution on Entity struct. While we could also remove bound on HydratedAggregate, it will alow creation of HydratedAggregate with unexpected state which is not what we should allow.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant