-
Squash the commit if there are too many small ones.
-
Follow the code style.
-
Make sure
HYPHYGTEST
and HBL tests intests/hbltests/libv3
passes. -
If adding new feature:
- Add accompanying test case.
-
If fixing a bug:
- Provide detailed description of the bug in the pull request.
- Add appropriate test coverage if applicable.
All lower case with underscores separating words, as in loop_indexer
Prefix global variables with hy_
in C++ (e.g. hy_global_list
), and with namespace id in HBL (e.g. io.global_variable
)
Prefix variables that are meant to be private or auxiliary with an underscore, as in _hy_ignore_me
Capital case, as in ComputeExpression()
or VariableContainer
(class). Prefix the names of auxiliary classes and types with an _
.
Types such as enums, structs, and typedefs should prefixed with hy
and followed by capital case identifiers, e.g. hyFloat
If a function is cheap to call (i.e. don't worry about caching the result), name it as a variable, e.g. member_getter()
.
Capital case prefixed with a lower case k
, as in kHarvestFrequenciesResolveAmbiguities
Capital case prefixed with f
, as in fSearchCaseSensitive
All capitals with underscore-separated words, as in LIKELIHOOD_FUNCTION_EXPORT_FORMAT