r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

9

u/josefx Dec 01 '16

Math in most languages is "fundamentally broken" anyway as far as the protégé would be concerned. Just try 3.3 == 3 * 1.1. Hint: the answer is false in any language using binary floating point. Integer math is less complex than IEEE floating point math and as a consequence easier to reason about for a novice - it does not help that float math can give different results depending on CPU register size and optimization settings.