Lest's say we want to store the following data in ...
# tornadofx
n
Lest's say we want to store the following data in a config file
Copy code
{
   window : {
       x: 30.0
       y: 40.0
       list: [2,3,4]
  }
}
Which of the three variants would you prefer:
Copy code
config {   
          // Nested config values example
          
          // 1. Variant
                   set("window") to {
                       set("x" to 30.0)
                       set("y" to 40.0)
                       set("list" to listOf(2, 3, 4))
                   }
                   // 2. Variant
                   set("window"/"x" to 30.0)
                   set("window"/"y" to 40.0)
                   set("window"/"list" to listOf(2, 3, 4))

                  // 3. Variant
                   set("window.x" to 30.0)
                   set("window.y" to 40.0)
                   set("window.list" to listOf(2, 3, 4))
}