Skip to content
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

Revisit: Casing for tuple elements #139

Closed
bkoelman opened this issue May 3, 2018 · 0 comments
Closed

Revisit: Casing for tuple elements #139

bkoelman opened this issue May 3, 2018 · 0 comments

Comments

@bkoelman
Copy link
Contributor

bkoelman commented May 3, 2018

Follow-up on #107 and #104 (comment), based on this article. After reading the article, I agree it would be better to distinguish between tuple element names and variables declared using tuple syntax.

So I propose to update the casing table in AV1702 like this:

  1. Remove row "Tuple element"
  2. Add row "Tuple element names"
    Casing: Pascal
    Examples:
    (string First, string Last) name = ("John", "Doe");
    var name = (First: "John", Last: "Doe");
    (string First, string Last) GetName() => ("John", "Doe");
  3. Add row "Variables declared using tuple syntax":
    Casing: Camel
    Examples:
    (string first, string last) = ("John", "Doe");
    var (first, last) = ("John", "Doe");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant