jsend
jsend copied to clipboard
Change 'fail' to 'failure'
failure is more suitable here, because just like 'success', 'failure' is a noun unlike 'fail' which is a verb.
I prefer not making this change, as it is has the potential to break existing APIs that check for status: "fail"
In addition to its verb usage, fail can be a noun per http://m-w.com/dictionary/fail
ISTM this is one of those cases where if we were starting from day 1, we might be inclined to go success|failure, but the cost to make the change (aka breaking backwards compatibility) seems higher than the value.
I prefer "fail" over failure. Although it might seem natural, the first is more understandable.