Closed ws1088 closed 1 year ago
Actually, it DOES concatenate... If you create the following config, the +=
would work... but NOT as intended:
x = [1, 2]
d {
x = [1,2]
x += [3,4]
}
Results in:
{
"x": [
1,
2
],
"d": {
"x": [
1,
2,
3,
4
]
}
}
Also, according to https://hocon-playground.herokuapp.com/, the +=
operator SHOULD NOT extend arrays, only append elements, which, ironically, pyhocon can't do.
thanks!
test.conf:
code:
output:
I thot
+=
will concatenate...