JuliaLang/julia

parse command interpolations at parse time

开放

#3,150 创建于 2013年5月19日

 (13 条评论) (0 个反应) (0 位负责人)Julia (5,773 个派生)batch import
help wantedparser

仓库指标

星标
 (48,709 个星标)
PR 合并指标
 (平均合并 20天 6小时) (30 天内合并 157 个 PR)

描述

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

贡献者指南