JuliaLang/julia

parse command interpolations at parse time

Open

#3 150 ouverte le 19 mai 2013

Voir sur GitHub
 (13 commentaires) (0 réactions) (0 assignés)Julia (5 773 forks)batch import
help wantedparser

Métriques du dépôt

Stars
 (48 709 stars)
Métriques de merge PR
 (Merge moyen 20j 6h) (157 PRs mergées en 30 j)

Description

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

Guide contributeur