Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
(binding [*out* *err*]
(println (str x " is negative")))
IO.puts :stderr, "#{x} is negative"
io:format(standard_error, "~p is negative~n", [X]).
program write_to_stderr
use iso_fortran_env, only : stderr=>ERROR_UNIT
implicit none
integer :: x=-2
write(stderr,'(i0," is negative")') x
end program write_to_stderr
console.error(`${x} is negative`);
console.error(x, "is negative");
System.err.format("%d is negative\n",x);
System.err.printf("%d is negative", x);
System.err.println("$x is negative")
(format *error-output*
"~a is negative"
x)
io.stderr:write(string.format("%d is negative\n",x))
fwrite(STDERR, "{$x} is negative\n");
writeln(StdErr, Format('%d is negative',[-2]));
writeln(StdErr , x , ' is negative');
print STDERR "$x is negative";
warn "#{x} is negative"
$stderr.puts "%d is negative" % x
eprintln!("{} is negative", x);
System.err.println(s"$x is negative")