Skip to content

Instantly share code, notes, and snippets.

@mpilquist
mpilquist / example.scala
Created July 30, 2015 01:55
Using scala-reflect to desugar
scala> import scala.reflect.runtime.universe._
import scala.reflect.runtime.universe._
scala> showCode(reify {
| for{
| x <- 1 to 5
| _ = print("hi")
| } print(x)
| }.tree)
res1: String =