-
Notifications
You must be signed in to change notification settings - Fork 149
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
Change RedbKey and RedbValue to Key and Value #727
Comments
ya, that does seem better. Although I'll probably go with I'm getting a compiler error from the aliasing though. Do you know how to export an alias of a type with GATs? It looks to me like it's not possible: only generic params are allowed. https://doc.rust-lang.org/reference/items/type-aliases.html |
I dunno, everything's a type. It also seems a bit like including the type of a variable in the name, e.g., a string variable named
Oh that's annoying. I don't know if there's a workaround for that. |
Ya, I don't think it's possible from what I can tell. I'm going to merge this into #677 |
I think it's slightly more idiomatic to not prefix types with the crate name. If these names conflict with local type names, they can be referred to as
redb::Key
andredb::Value
, which is still short, sinceredb
is only four letters.API breakage can be avoided by doing a hidden re-export:
The text was updated successfully, but these errors were encountered: