You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to jsonnet and I'm loving it but I see a behavior that I'm surprised by: the + between object literals seems to be optional, but only on object literals:
This program is valid:
{a:1} {b:1}
This program is not:
local left = {a:1};
local right = {b:1};
left right
Changing left right to left + right makes the program valid.
This suggests that variables are not transparent in the same way that functions are. Is this expected?
Also, what is going on with {a:1} {b:1}? Why is that, and expressions such as {}{}, valid?
Thanks!
The text was updated successfully, but these errors were encountered:
I'm new to jsonnet and I'm loving it but I see a behavior that I'm surprised by: the + between object literals seems to be optional, but only on object literals:
This program is valid:
This program is not:
Changing
left right
toleft + right
makes the program valid.This suggests that variables are not transparent in the same way that functions are. Is this expected?
Also, what is going on with
{a:1} {b:1}
? Why is that, and expressions such as{}{}
, valid?Thanks!
The text was updated successfully, but these errors were encountered: