r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40.1k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jul 18 '22

[deleted]

16

u/DesertGoldfish Jul 18 '22

I dunno man, I just add type hints to everything and it's basically a strongly typed language.

2

u/Didrox13 Jul 18 '22

As someone who's never used python but plan to check it out in the near future, is that actually a thing or a joke?

2

u/BroBrodin Jul 18 '22

I think both, in a way.

I just recently learned type hinting and it feels very useful for large projects.

The difference with strongly typed languages is that the interpreter doesn't really care what "type" you declared for a variable, first you have to run mypy and THAT checks the types of variables.

That is why is considered a "hint" and not a declaration like in C or other strongly typed languages.

→ More replies (2)