-
Notifications
You must be signed in to change notification settings - Fork 66
client.variation should not release zalgo #69
Comments
Hi @jvivs , Thanks for bringing this up. This is important to get right. We're going to change the code to avoid this inconsistency. |
Hi @jvivs , Our latest release — which adds Thanks for bringing it up! Best, |
The convention for callbacks is to wrap them in a It seems reasonable to me that, if you're going to support callbacks, you should fix this. Many still prefer to use callbacks over promises. |
Our Is that not true? Did you run into an issue? |
I thought the original issue would still be present, but I did not look close enough at the implementation - my bad. You go through a promise, which does force async. However, this does mean that this module is no longer compatible with node 0.8.x - unless |
fix call stack overflow in all_flags
client.variation
has an error-first callback interface, it unfortunately does not appear to follow the pattern completely.Instead of always calling callbacks asynchronously, callbacks in the
variation
method could be called either sync or async.This is a serious issue that introduces inconsistencies in code execution and impedes the ability for consumers to be able to reason about your. Without following this pattern to the letter, you release zalgo.
The text was updated successfully, but these errors were encountered: