Type hinting of Python is just a toy ?

Chris Angelico rosuav at gmail.com
Fri Jan 4 07:48:46 EST 2019


On Fri, Jan 4, 2019 at 8:06 PM iamybj--- via Python-list
<python-list at python.org> wrote:
>
> In fact, there is only 3 types in all prigramming languages.
> Primitive type: int, string, bool, char....
> Complex type: struct or class
> Array Type: int[10], string[100], struct[1000]
>
> These 3 type can represent all thins in the world.

Why do you need three types? REXX has just one type: the string.
Structures, classes, arrays, mappings, etc are all implemented with a
special type of variable, the "stem".

ChrisA



More information about the Python-list mailing list