Skip to content
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

feat(collections): improve development experience #991

Merged
merged 32 commits into from
Oct 14, 2022

Conversation

testinginprod
Copy link
Collaborator

Description

What does this PR do?

Purpose

Why is this PR important?


func (i Iterator[K, V]) Key() K {
rawKey := append(i.prefixBytes, i.iter.Key()...)
_, c := i.kc.KeyDecode(rawKey) // todo(mercilex): can we assert safety here?
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we can assert key was fully consumed by doing if len(rawKey) != read bytes panic (read bytes is _ currently)

@testinginprod testinginprod force-pushed the mercilex/collections-ux branch from 4e48879 to a3ef64d Compare October 11, 2022 11:17
@testinginprod testinginprod changed the title Mercilex/collections ux feat(collections): improve development experience Oct 14, 2022
@testinginprod testinginprod marked this pull request as ready for review October 14, 2022 10:52
@testinginprod testinginprod requested a review from a team as a code owner October 14, 2022 10:52
@testinginprod testinginprod enabled auto-merge (squash) October 14, 2022 13:04
@testinginprod testinginprod merged commit fe3923e into master Oct 14, 2022
@testinginprod testinginprod deleted the mercilex/collections-ux branch October 14, 2022 15:08
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