Logo

Programming-Idioms

History of Idiom 1 > diff from v29 to v30

Edit summary for version 30 by :
[Ruby] "p" is not a shortcut of "puts", it uses different string representations (via "inspect" instead of "to_s").

Version 29

2016-02-16, 12:16:14

Version 30

2016-02-16, 12:18:57

Idiom #1 Print Hello World

Print a litteral string on standard output

Idiom #1 Print Hello World

Print a litteral string on standard output

Code
p "Hello World"
Code
puts "Hello World"
Comments bubble
p is the shortcut of puts