Logo

Programming-Idioms

  • Ada

Idiom #94 Print the type of a 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.

(type x)

New implementation...
< >
programming-idioms.org