Logo

Programming-Idioms

History of Idiom 94 > diff from v42 to v43

Edit summary for version 43 by programming-idioms.org:
Restored version 41

Version 42

2020-01-05, 09:57:29

Version 43

2020-01-05, 10:54:29

Idiom #94 Print type of variable

Print the name of the type of x. Explain if it is a static type or dynamic type.

This may not make sense in all languages.

Idiom #94 Print type of variable

Print the name of the type of x. Explain if it is a static type or dynamic type.

This may not make sense in all languages.

Code
int b = 3
Code
print(x.runtimeType);