2 ms·
that's if you implement it as a function :) You could totally implement these things as compile-time macros, or do many different optimisation passes, or so ma
by rtpg 10y ago
that's if you implement it as a function :)
You could totally implement these things as compile-time macros, or do many different optimisation passes, or so many other things.
- AstralStorm 10y agoThe old school of algorithm developers used to introduce hard, explicitly verified preconditions and postconditions. Typically this is done in C and C++ using assertions. In general, any dependence on external mutable state should be asserted or otherwise verified. Those checks can be disabled for performance later. Meshes very well with actual tests too.