-
Notifications
You must be signed in to change notification settings - Fork 39
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
Why the SDK does not provide a way to fetch Long value? #501
Comments
@apulbere thank you for raising your concern. From your description, I assume you are referring to the feature flag evaluation contract [1]. I am not sure about the historical reason for ignoring the From the spec point of view, we only enforce Maybe we could aim for a generic representation of numbers via Java cc - @toddbaert @justinabrahms appreciate opnion here [1] - https://github.com/open-feature/java-sdk/blob/main/src/main/java/dev/openfeature/sdk/FeatureProvider.java#L16-L24 |
I'd support something around |
I think If we add it though, what do we do with providers that don't specifically implement this? Or would we even expect them to? Might we instead just call I'm not sure... |
I like this idea :) I also like Todd's suggestion to maintain backward compatibility. IMHO: we should
This ticket has been open for quite a while, and I think we should continue with this improvement. So, what do you think? especially about having default methods for all kinds of number sub-types or not. |
I like your plan. I'm really not sure about your question though. My gut says deprecate the other numerics, but I'm not sure. 🤔 |
I see we have getDoubleValue and getIntegerValue, but not for Long type.
I can open a PR to add that.
The text was updated successfully, but these errors were encountered: