It does look like this changed a few CSS names here, I think. In particular the REPL’s prompt… and it’s always been strange that macros are styled the same as comments. But I think this is better:
the code for the above
struct Vec{T<:Real}
x::T # foo
y::T # bar
end
Base.:+(a::Vec, b::Vec) = Vec(a.x + b.x, a.y + b.y)
α = 1.23
v = Vec(1.0, α) + Vec(3.0, 4.0)
mode = :fast
if mode == :fast
@info v
end
julia> struct Vec{T<:Real}
x::T # foo
y::T # bar
end
julia> Base.:+(a::Vec, b::Vec) = Vec(a.x + b.x, a.y + b.y)
julia> α = 1.23
1.23
julia> v = Vec(1.0, α) + Vec(3.0, 4.0)
Vec{Float64}(4.0, 5.23)
julia> mode = :fast
:fast
julia> if mode == :fast
@info v
end
[ Info: Vec{Float64}(4.0, 5.23)
