JuliaLang/julia

parse command interpolations at parse time

Open

#3,150 opened on 2013年5月19日

GitHub で見る
 (13 comments) (0 reactions) (0 assignees)Julia (5,773 forks)batch import
help wantedparser

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (平均マージ 20d 6h) (30d で 157 merged PRs)

説明

It would be nice to have a way to "double interpolate" a variable with respects to nested possible interpolation contexts to make it easier to write quoted code blocks that wants to interpolate a variable inside a string. e.g., so the below code echos "hi". Not sure what the best way to go about that is.

macro example()
 f="hi"
 quote
  run(`echo $$f`)
 end
end

コントリビューターガイド