Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Replace // with # for line comments #158

Merged
merged 1 commit into from
Oct 8, 2021
Merged

Replace // with # for line comments #158

merged 1 commit into from
Oct 8, 2021

Conversation

scarolan
Copy link
Contributor

The Terraform HCL documentation states that the # is the preferred and default setting for single line comments:
https://www.terraform.io/docs/language/syntax/configuration.html#comments

The Terraform HCL documentation states that the # is the preferred and default setting for single line comments:
https://www.terraform.io/docs/language/syntax/configuration.html#comments
@scarolan
Copy link
Contributor Author

scarolan commented Oct 1, 2021

The HCL docs are a bit more ambiguous about this:
https://github.com/hashicorp/hcl/blob/main/hclsyntax/spec.md#comments-and-whitespace

From a practical point of view I'd guess that 95% of HCL users are editing Terraform code so it makes more sense to default to # instead of //

@alexdima
Copy link
Member

alexdima commented Oct 8, 2021

Thank you!

@alexdima alexdima added this to the September 2021 milestone Oct 8, 2021
@alexdima alexdima merged commit 5641b25 into microsoft:main Oct 8, 2021
@scarolan
Copy link
Contributor Author

Thank you!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants