Search code examples
commentsdocumentation

Difference between Fallback and Default


Is there a difference between these two or are they synonyms ?

Example: If x not in data --> use (default/fallback) value


Solution

  • The terms default and fallback are very similar in that they refer to a value used if some other value is not provided.

    The difference is in the implication.

    • fallback: you would prefer to use some other value, but if it is not available you can "fall back" to the fallback value. It is in the same vein as backup or contingency.

    • default: you have no preference, the default is used unless some other value is provided.

    Personally, I use "default" unless I want to emphasize that this value should not normally be used.