Intro To The Codebase, Part III: Using Base Math
A tour through the base layer's math types and operations, prepared to make writing C math code much easier.
In this video, I cover the portion of the base layer prepared for math operations. C doesn’t have language features like operator and function overloading. These features are often used for math libraries in other languages, and the C naming convention is left as an afterthought. The Hidden Grove codebase contains a fairly succinct, memorable, and expressive naming scheme, so that while the code does need to be more verbose without operator overloading, it can still be relatively straightforward to write, succinct, and easier to read.
The naming convention is described by the following grammar rules (the
.. operator is used for concatenation):