carbon-lang icon indicating copy to clipboard operation
carbon-lang copied to clipboard

Clarify checked vs unchecked parameters

Open brevzin opened this issue 3 years ago • 1 comments

The current wording is unclear as to which part of the syntax makes a parameter checked vs unchecked (it looks like it's the :!).

I'm also suggesting referring to unchecked parameters as unchecked (rather than template) makes it more clear that we're dealing with a dichotomy. Additionally, while using "template parameter" in this context probably comes from the fact that these are how template parameters behave in C++, checked parameters are also... kind of template parameters (in the C++ sense)? So it's hard to see that as a dichotomy.

brevzin avatar Jul 20 '22 03:07 brevzin

I'm assigning this to @josh11b to review, but note pre-commit is failing (we use prettier for formatting, see https://github.com/carbon-language/carbon-lang/blob/trunk/docs/project/contribution_tools.md#pre-commit for how to install pre-commit automation but you can also copy the output of the failed check)

jonmeow avatar Jul 20 '22 20:07 jonmeow

Proposal #2138 has resolved this question in favor of "checked" and "template" terminology.

josh11b avatar Sep 26 '22 23:09 josh11b

I've made a replacement PR #2216 . Please direct comments there.

josh11b avatar Sep 26 '22 23:09 josh11b