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 合併指標
 (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

貢獻者指南