-
Notifications
You must be signed in to change notification settings - Fork 6
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
Sorted set inconsistencies. #167
Comments
@schwern In case this isn't on your radar, it looks like sorted sets are inconsistent from the other types in that their |
@pgautier404 In almost (dictionaryIncrement being an exception) every other case there's some need to convert the value. SortedSets largely return numbers (score or rank). The plan was to change them to simple type conversions and avoid having the user jump through an accessor. For example,
I could add an accessor method for consistency 🤷 but I'd like to keep the single value types. |
@pgautier404 I thought about it some more. Because we're so inexperienced with Go, I think it's best to make all the struct members private and provide an accessor. We can always change it to a simple type conversion later. |
@pgautier404 ...except responses are in a different package now, so we can't access private members. It seems silly to have both a single public numeric member, and an accessor for that public member. I'm going to keep it simple and make them simple type conversions and provide a method for consistency. |
SortedSetGetRank, SortedSetGetScore, and SortedSetRemove all reference elements by their value. However they all take those values in different ways...
We're still referring to the "element name" rather than "element value" in these functions.
client.delete(collectionName)
.The text was updated successfully, but these errors were encountered: