That feeling when you haven't used a strongly typed language in years and you end up wasting several hours because you had forgotten that C++ performs integer division when you divide 2 integers.
-
-
(E.g.: if you use Python 2, don’t think that the language’s weak typing entails that division of integers isn’t integer division!)
-
Fair enough, I don't know Python, but I guess you could have a language that is weakly typed in some sense and yet has that kind of behavior. In that case though, it would have helped me if I had immediately made the inference C++ is strongly typed -> it performs integer division
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.