Logo

Programming-Idioms

History of Idiom 94 > diff from v31 to v32

Edit summary for version 32 by steenslag:
[Ruby] actually print

Version 31

2018-02-06, 22:52:03

Version 32

2018-02-07, 17:33: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
x.class
Code
puts x.class