JuliaLang/julia

parse command interpolations at parse time

Open

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

在 GitHub 查看
 (13 评论) (0 反应) (0 负责人)Julia (48,709 star) (5,773 fork)batch import
help wantedparser

描述

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

贡献者指南

parse command interpolations at parse time · JuliaLang/julia#3150 | Good First Issue