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

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -