Skip to content

Instantly share code, notes, and snippets.

@retronym
Created June 20, 2014 18:12
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 retronym/c97eb74f8c780f4f8fec to your computer and use it in GitHub Desktop.
Save retronym/c97eb74f8c780f4f8fec to your computer and use it in GitHub Desktop.
Block vs q"{ ... }"
scala> q"{0; val x = 0}"
res6: $r.intp.global.Tree =
{
0;
val x = 0;
()
}
scala> Block(q"0" :: Nil, q"val x = 0")
res7: $r.intp.global.Block =
{
0;
val x = 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment