You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 19, 2018. It is now read-only.
Is there precedent for null being used to indicate the default value in APIs like this? Would an enum be clearer?
I'm not sure. I have a mild preference for boolean since this is really a 2-state switch. Another option might be to make it an optional member of the dictionary that's a simple boolean, rather than supporting an explicit 3rd value.
The text was updated successfully, but these errors were encountered:
I think it's somewhat more natural to use an optional boolean, and use lack of presence in the dictionary to indicate default behavior, instead of null.
@tdresser commented on the definition of requireCancelable:
I'm not sure. I have a mild preference for boolean since this is really a 2-state switch. Another option might be to make it an optional member of the dictionary that's a simple boolean, rather than supporting an explicit 3rd value.
The text was updated successfully, but these errors were encountered: