scala - Create an object with vals that represent fields names on a case class -
i'm getting familiar scala macros.
how can following (or possible):
case class foo(name:string) //'keys' macro implementation val fookeys = keys[foo] //returns object fookeys{ val name = "name" } println(fookeys.name) // "name"
i don't mind if definition local - long type defined , available.
Comments
Post a Comment