hcl icon indicating copy to clipboard operation
hcl copied to clipboard

Update spec.md to avoid suggesting ! is a binary operator

Open ascopes opened this issue 3 years ago • 1 comments

The current spec appears to suggest that the bang is a binary operator, which would enable expressions such as foo ! bar.

https://github.com/hashicorp/hcl/blob/main/hclsyntax/parser.go#L1070 seems to suggest this is only a unary operator.

ascopes avatar Aug 28 '22 11:08 ascopes

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Aug 28 '22 11:08 hashicorp-cla

Thanks!

alisdair avatar Jan 30 '23 15:01 alisdair