Skip to content

Instantly share code, notes, and snippets.

@kubukoz
Forked from pjazdzewski1990/Hello2Impl.scala
Created February 25, 2016 12:28
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 kubukoz/0b723779d32da110e8e7 to your computer and use it in GitHub Desktop.
Save kubukoz/0b723779d32da110e8e7 to your computer and use it in GitHub Desktop.
def hello2Impl(c: blackbox.Context)(s: c.Expr[String]): c.Expr[Unit] = {
import c.universe._
c.Expr(q"""println("hello " + ${s.tree} + "!")""")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment