Skip to content

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.

2 participants