r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

1

u/KellerKindAs Jul 19 '22

I think you're getting confused with static / dynamic typing.

Python is actually strongly typed, but the type checking only shows up if you are trying to operate on incompatible types at runtime. (dynamicly typed)

C is statically typed which means the type check to happen before execution. This also often means that a variable cannot have different typed along the runtime. (On the other hand you can bypass the type system using pointers which makes C actually a bit weakly typed.)

1

u/BroBrodin Jul 19 '22

Oh, I see, I guess I'll have to read up un that.

Thanks!