Skip to content

Instantly share code, notes, and snippets.

@densh
Created January 29, 2014 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save densh/f3e94af120eea94b65a5 to your computer and use it in GitHub Desktop.
Save densh/f3e94af120eea94b65a5 to your computer and use it in GitHub Desktop.
scala> val name = TermName("Foo")
name: reflect.runtime.universe.TermName = Foo
scala> pq"`$name`"
res8: reflect.runtime.universe.Ident = `Foo`
scala> pq"$name"
res10: reflect.runtime.universe.Bind = (Foo @ _)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment