Sitelet https://github.com/benbjohnson/immutable/pull/24
Skip to content

Remove references to []byte keys in README - #24

Merged
benbjohnson merged 1 commit into
benbjohnson:masterfrom
banks:patch-1
Oct 6, 2022
Merged

benbjohnson merged 1 commit into
benbjohnson:masterfrom
banks:patch-1

Conversation

@banks

@banks banks commented Oct 5, 2022

Copy link
Copy Markdown
Contributor

#23 added generic support (which is awesome) but noted the breaking change about no longer supporting []byte keys due to the Ordered constraint.

Ideally, this library would continue to support []byte keys and use a custom interface to constrain key types instead. But until that happens, the README right now is a bit surprising as it talks explicitly about supporting []byte keys still but they are actually a compile error!

Here's a drive-by fix for the README for now - I think I caught all the incorrect statements.

benbjohnson#23 added generic support (which is awesome) but noted the breaking change about no longer supporting `[]byte` keys due to the `Ordered` constraint.

Ideally, this library would continue to support `[]byte` keys and use a custom interface to constrain key types instead. But until that happens, the README right now is a bit surprising as it talks explicitly about supporting `[]byte` keys still but they are actually a compile error!

Here's a drive-by fix for the README for now - I _think_ I caught all the incorrect statements.
@benbjohnson
benbjohnson merged commit 7353e28 into benbjohnson:master Oct 6, 2022
@benbjohnson

Copy link
Copy Markdown
Owner

Good catch, @banks! I agree that []byte support would be nice. I haven't had any time to dig into the Go generics stuff but I'm open to a PR if anyone wants to tackle it.

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