Skip to content

Reasons for using smallCamelCase for function names

Cocoa edited this page Aug 25, 2022 · 1 revision

smallCamelCase will be used for all functions.

The reasons why I chose smallCamelCase are that

  1. It transforms much fewer function names as many of them in OpenCV are already starting with a lowercase letter.
  2. Avoid converting abbreviations to lowercase spellings, which can be quite tricky sometimes.
  3. Make the APIs similar to their corresponding ones in C++/Python.
  4. This could also help when the user wants to search for existing examples/usage online.