Logo

Programming-Idioms

History of Idiom 94 > diff from v18 to v19

Edit summary for version 19 by :
New Lua implementation by user [Nepta]

Version 18

2016-04-06, 20:28:06

Version 19

2016-04-08, 06:27:57

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
print(type(x))
Comments bubble
print the dynamic type of x