News for hackers. Stuff that matters.
Re:Strong typing, a hill I'm willing to die on by tome on Saturday October 07, 2023 @10:43AM (#37802124)
It's really hard to understand what you mean. Could you clarify, taking into account these two results, firstly a correct calculation from a statically typed language, Haskell, and secondly an incorrect calculation from a dynamically typed language, Python

    > 9223372036854775807 + 10 :: Integer 
    9223372036854775817

    >>> numpy.int_(9223372036854775807) + 10
    <stdin>:1: RuntimeWarning: overflow encountered in long_scalars
    -9223372036854775799

There are no comments on this comment yet.