JuliaLang/julia — pull request #1591 by toivoh (2012-11-22 09:05:11+00:00)
Title: RFC: @show macro

Examples:

julia> x=23
23

julia> @show x
x	= 23

julia> @show x^2
:( ^(x, 2) )	= 529

(Arguably, the last one should print as `^(x, 2) = 529` instead.
I'll submit another pull request about that)
I've found this macro to be immensely useful in (print) debugging, i.e. instead of having to write

println("symbols = ", symbols)

I can just write

@show symbols

I think I saw something like this floating around a good number of months ago, but it doesn't appear to have made it into base. Any reason not have this kind of thing?