Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

Follow error-first pattern for callbacks #16

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

HenrikJoreteg
Copy link
Contributor

I'd suggest following this pattern (of returning an error or falsy value in the first argument of callbacks). Many flowcontrol libraries expect this convention and is easier that string matching to know whether there's been an error or not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant