dabreegster/scala-object-explorer — pull request #1 by stanch (2014-03-02 20:36:17+00:00)
Title: No reflection, no type boilerplate, extensible

Hey, I though I would rewrite your project “the Scala way”, eliminating run-time reflection and the consequent downsides. If you are interested in how it works, here’s a very similar example: http://docs.scala-lang.org/overviews/macros/implicits.html.

To illustrate:
```scala
import scala.util.dump._

// Example case class
case class Scenario(agents: List[Agent], modes: Array[String], name: String, id: Long)
case class Agent(num: Int, times: Map[String, Double])

// Some data
val a1 = Agent(1, Map("baseline" -> 2.0, "tolls" -> 5.0))
val a2 = Agent(2, Map("baseline" -> 3.0, "tolls" -> 2.3))
val s = Scenario(List(a1, a2), Array("baseline", "tolls"), "trial", 42)

// Dump!
println(AsciiTreeView(s))
```

The output is the same, I only added commas.