getNWhatever() vs. getNumWhatever() in API
Posted: Mon Dec 08, 2008 3:49 pm
Currently the SimTK API uses both "N" and "Num" in method names which return a count of something. I would like to propose that we standardize on "Num" in the next release. That is, we should have getNumBodies() rather than getNBodies().
Does anyone object? If not I propose to rename the offending routines and fix all calls within SimTK Core, but leave the old names as private methods re-implemented to call the new names the way Paul Mitiguy did when he made changes to the Rotation API. That made for easy conversion since the resulting compiler errors lead right to the replacement code.
Does anyone object? If not I propose to rename the offending routines and fix all calls within SimTK Core, but leave the old names as private methods re-implemented to call the new names the way Paul Mitiguy did when he made changes to the Rotation API. That made for easy conversion since the resulting compiler errors lead right to the replacement code.