-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add FAQ entries for common syntax questions #2011
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've given some suggestions for rephrasing. I think changing the phrasing a little may help people who are less familiar with Carbon.
docs/project/faq.md
Outdated
@@ -310,6 +313,84 @@ actively encourage using these languages in those cases. However, we need a | |||
solution for C++ use-cases that require its full performance, low-level control, | |||
and access to hardware. | |||
|
|||
## Why is Carbon designed that way? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Why is Carbon designed that way? | |
## How were specific feature designs chosen? |
Small suggestion: "that way" rings a bit disapproving to me, whereas this would be more something we could respond with:
"Throughout the design, we include 'Alternatives considered' and 'References' sections which can be used to research the decision process for a particular design." (like the second paragraph at https://github.com/carbon-language/carbon-lang/blob/trunk/docs/project/faq.md#what-can-i-do-if-i-disagree-with-a-design-decision)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
docs/project/faq.md
Outdated
in scope. | ||
|
||
It's also worth noting that Carbon doesn't use _any_ kind of brackets to mark | ||
template parameters (or generic parameters), so if Carbon had angle brackets, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
template parameters (or generic parameters), so if Carbon had angle brackets, | |
[template parameters (and also generic parameters)](https://github.com/carbon-language/carbon-lang/blob/trunk/docs/design/README.md#checked-and-template-parameters), so if Carbon had angle brackets, |
To my below comment, which I've marked resolved, I do think there should be some link/reference for what is used for template parameters. But maybe this reflects your intent?
(also, suggesting replacing "or" with "and also" to make clear to newcomers that "template" and "generic" aren't two terms for the same thing)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added the link, in a slightly different place.
(also, suggesting replacing "or" with "and also" to make clear to newcomers that "template" and "generic" aren't two terms for the same thing)
That feels awkward because we're inside a negation, and "not (A and B)" conveys less information than "not (A or B)". How about this instead?
Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
No description provided.