Skip to content

deref to delegate #409

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

Merged
merged 1 commit into from
Nov 28, 2022
Merged

deref to delegate #409

merged 1 commit into from
Nov 28, 2022

Conversation

molpopgen
Copy link
Member

Replace Deref/DerefMut for TableCollection and TreeSequence with delegates.
The use of Deref for these types is an anti-pattern.

The only API breakage is for code depending on the Deref behavior as a trait
or via *.
Such code probably doesn't exist.

The previous use of Deref/DerefMut was an anti-pattern.
We now use the delegate crate to provide the same API.

BREAKING CHANGE: code generic over the Deref behavior
is now broken.
@molpopgen molpopgen merged commit b09816b into main Nov 28, 2022
@molpopgen molpopgen deleted the deref_to_delegate branch November 28, 2022 18:14
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