Quote:
Originally Posted by sdaustin
I suggest you research the Mars Climate Orbiter for a good example of how a seemingly obvious bug can slip through the cracks, with catastrophic results, in spite of having some of the best & brightest programmers and most stringent QA processes.
|
The implication of the above being that not only would that problem not have slipped through, but also no other problems would have been introduced by the harder-to-read code which is littered with casts:
Quote:
Originally Posted by Greg McKaskle
The downside is that compilers are sticklers and your code may actually become harder to read, or the points at which you connect to WPILib, which doesn't use units, may just become littered with casts and such.
|
In the absence of a sizable independent controlled study of both approaches, no definitive conclusions can be drawn.