Logo

Programming-Idioms

History of Idiom 59 > diff from v16 to v17

Edit summary for version 17 by :

Version 16

2015-09-03, 16:27:18

Version 17

2015-09-04, 15:54:48

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Code
IO.puts :stderr, "#{x} is negative"
Doc URL
http://elixir-lang.org/getting-started/io-and-the-file-system.html
Demo URL
http://elixirplayground.com?gist=7556b8f295e29e0e62fe