-
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).
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
All capitals with underscore-separated words, as in LIKELIHOOD_FUNCTION_EXPORT_FORMAT