Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Expression interpolation

$
0
0

@tomtom wrote:

in doc, the following example is given:

julia> ex = :(a in $:((1, 2, 3) ) )
:(a in (1, 2, 3))

I don’t get the meaning of “expression interpolation”, as:

julia> ex2 = :(a in (1, 2, 3) )
:(a in (1, 2, 3))

julia> ex == ex2
true

why we need to do it in the way of ex, but not simply ex2? thanks.

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images