Jon Pretty | 24 Dec 12:47

Re: Scala Object Notation ( SCON? )

Hi John,

And how about this?

   type Person = {
     def name : String
     def age : Int
   }

   val person = new {
     def name = "Peter"
     def age = 20
   } // this is a Person

So many options, but none of them quite as concise as JSON...

Cheers,
Jon

--

-- 
Jon Pretty | Sygneca Ltd.


Gmane