-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standardize Bicep syntax - What's the difference between "", "=", and ":" ? #1183
Comments
Coincidentally, we are taking feedback on #64 right now because of this confusion. So we are planning to get rid of the confusion around On However, for objects (object type, resource body, module body), var myCar = {
make: 'Ford',
model: 'Mustang',
year: 1969
} Whether we were right or wrong is an open question :) Happy to take more feedback here. |
Chris - does this answer help clarify? Should I keep this open or can I close it? |
Going to close this - let me know if there is any more context I can add |
Thanks! all good! |
Is your feature request related to a problem? Please describe.
I'm loving Bicep so far, but I'm having an issue understanding the syntax decisions of Bicep.
Specifically, I'm having issues figuring out when and why to use a space, an "=" or a ":".
For example, there are two types of parameters -
Simple
Param with meta
The first example shows assigning a default parameter, the second shows meta info that assigns a default parameter, but using a different syntax.
Variables with objects show the same issue
Why would the internal assignment use a ":" vs a "="? Is this some sort of JSONish syntax?
the ARM json produced is this:
Resources use an = sign, while the internal fields use :
Describe the solution you'd like
I'd like to see a more consistent usage of the = and : signs and possibly more JSON like syntax.
I would think Resources should not be required to use an "="
to be consistent with parameters with meta info
This would make the "=" be an ASSIGNMENT character and the space character be a meta info indicator
I could see using the ":" for both instances.
The text was updated successfully, but these errors were encountered: