This language bar is your friend. Select your favorite 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.

#Edit dateEdit SummaryEditor
👁 Δ 33 2018-02-07, 20:31 Admin deletes impl 2230 programming-idioms.org
👁 Δ 32 2018-02-07, 17:33 [Ruby] actually print steenslag
👁 Δ 31 2018-02-06, 22:52 New Python implementation by user [ht] ht
👁 Δ 30 2018-01-14, 07:26 New Dart implementation by user [Edward E.] Edward E.
👁 Δ 29 2018-01-10, 13:05 [Rust] No need to allocate a String Boiethios
👁 Δ 28 2017-06-09, 10:38 New Go implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 27 2017-04-29, 07:10 [Rust] Fixed demo link TheVTM
👁 Δ 26 2017-04-27, 09:17 New Rust implementation by user [TheVTM] TheVTM
👁 Δ 25 2016-11-10, 08:46 [Lua] Comment emphasize programming-idioms.org
👁 Δ 24 2016-10-26, 12:12 [Python] 2 ways -> 2 impls programming-idioms.org
👁 Δ 23 2016-10-26, 12:11 New Python implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 22 2016-10-26, 12:11 [Perl] No literature in code block programming-idioms.org
👁 Δ 21 2016-10-26, 12:10 [Perl] No literature in code block programming-idioms.org
👁 Δ 20 2016-10-26, 12:09 [Csharp] Stick to statement programming-idioms.org
👁 Δ 19 2016-04-08, 06:27 New Lua implementation by user [Nepta]
👁 Δ 18 2016-04-06, 20:28 New Ruby implementation by user [steenslag]
👁 Δ 17 2016-02-26, 16:53 [PHP] code more clear
👁 Δ 16 2016-02-26, 16:50 [PHP] return class name if $x is object
👁 Δ 15 2016-02-26, 16:30 New PHP implementation by user [Feifan]
👁 Δ 14 2016-02-18, 16:58 [Csharp] formatting
👁 Δ 13 2016-02-17, 10:20 [Csharp] formatting
👁 Δ 12 2016-02-17, 10:20 New Csharp implementation by user [chamicalkash]
👁 Δ 11 2016-02-17, 10:09 [Java] indentation
👁 Δ 10 2016-02-17, 10:08 New Java implementation by user [javasucks]
👁 Δ 9 2016-02-16, 19:46 New Haskell implementation by user [JH]
👁 Δ 8 2015-11-30, 12:37 New D implementation by user [piou]
👁 Δ 7 2015-11-03, 23:54 New D implementation by user [piou]
👁 Δ 6 2015-10-31, 16:01
👁 Δ 5 2015-10-29, 14:05
👁 Δ 4 2015-10-28, 02:07
👁 Δ 3 2015-10-28, 02:07
👁 Δ 2 2015-10-01, 11:39
1 2015-10-01, 11:37