-
Notifications
You must be signed in to change notification settings - Fork 5
refactor rows with metadata API #141
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
Conversation
@MomoLangenstein -- this PR is a quick version of what you suggested in #129 re: Now that I've undone the
But, since this change is API-breaking, perhaps even more than the strong row ID types, I figure now is a good time to discuss it, so that we can have as many breaking changes as possible in one release. |
Now that you’ve described a use-case, I think you could keep the exposed version taking an option. This explicit version could either be renamed to |
What do you think about replacing the |
The There is a use case for
Since I've never tried this, and am only just reading the not free book, I'm unsure if this just wouldn't work as generics, due to type erasure. Or, it may work but compile loads of versions of the |
In most use cases, there won’t be any performance difference at all. Unless you throw a branch prediction benchmark at this, there should be no difference at all.
You are right, it would compile one version per type it is specialised for (though the compiler implements optimisations to specialise as little as possible). By using |
Cool, thanks! So, maybe I'll keep the existing API (to not break things), add a |
ee2c68f
to
afb4696
Compare
We’ll also need to fix the individuals functions here |
Yeah, that's happening once I merge that other PR & rebase here. |
f801234
to
27bf110
Compare
add rows with Some (non-Option-al) metadata. Closes #131
27bf110
to
58c7b6b
Compare
See #141 for background.