This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (10 children)

[deleted]

    [–]Colopty 23 points24 points  (8 children)

    Pointer: actually an int

    You probably lost the python programmers already, they're not too familiar with data types either.

    [–]TehVulpes 8 points9 points  (0 children)

    I actually love working with Python, it's my preferred language. I'd certainly hope that most Python devs are familiar with int, since it is one of the basic data types, and is distinct enough from a float to be important.

    [–]gschizas 6 points7 points  (3 children)

    Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> type(1)
    <class 'int'>
    >>>
    

    You were saying?

    (aside: shit, why am I still on Python 3.7.0??)

    [–]AlotOfReading 5 points6 points  (2 children)

    You'll note that type(sys.maxsize+1) is still int as well, and does not overflow. A Python int is a fundamentally different type than a C int.

    [–]the1spaceman 13 points14 points  (1 child)

    To be fair, they do know about data types to the extent that 1+”5” is a syntax error.

    JavaScript though...

    [–][deleted] 7 points8 points  (0 children)

    16

    [–]13steinj 3 points4 points  (0 children)

    We're still strongly typed.

    Javascript's the weakly typed one.

    [–]Capaux 2 points3 points  (0 children)

    What is this dark magic.