object composition without + sign

38 views
Skip to first unread message

MovaTech Today

unread,
May 5, 2022, 4:18:04 PM5/5/22
to Jsonnet
While working with grafonnet library, I have found one operation that is confusing for me. 
It look like the following: 

{} {
  field: 42
} {
  field: 43
}


I don't understand why it works, and the final object contains 2 fields. I could not find any references in docs. Could you help me to understand it -- is it a composition, object override construct or something else? 

I expected it as the following (with plus signs): 
{} + {
  field: 42
} + {
  field: 43
}

Reply all
Reply to author
Forward
0 new messages