Logo

Programming-Idioms

History of Idiom 94 > diff from v29 to v30

Edit summary for version 30 by Edward E.:
New Dart implementation by user [Edward E.]

Version 29

2018-01-10, 13:05:36

Version 30

2018-01-14, 07:26:08

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(x.runtimeType);