You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GetData method declares camelCase tuple element names. That nicely matches what the Test1 method expects. It deconstructs into local variables, which should be camelCase. So no issues up to here. But method Test2 now gets into a conflict, because it dots into the tuple element names. Because they read as instance properties, they should be PascalCase. To summarize: it depends on how the caller uses the return value of GetData to determine which casing is the "right" choice.
local functions
We should add casing for local functions to the table. From what I have seen, they should match the casing of methods, which is Pascal casing.
Proposal:
Add tuple elements to the table. Choose camelCase.
Add local functions to the table. Choose PascalCase.
The text was updated successfully, but these errors were encountered:
Existing rule:
Use proper casing for language elements (AV1702)
Then a table follows with casing per language element
New language features to consider:
We should add casing for tuple element names to the table. But what the casing should be is not so obvious. Consider the next example:
The
GetData
method declares camelCase tuple element names. That nicely matches what theTest1
method expects. It deconstructs into local variables, which should be camelCase. So no issues up to here. But methodTest2
now gets into a conflict, because it dots into the tuple element names. Because they read as instance properties, they should be PascalCase. To summarize: it depends on how the caller uses the return value ofGetData
to determine which casing is the "right" choice.We should add casing for local functions to the table. From what I have seen, they should match the casing of methods, which is Pascal casing.
Proposal:
The text was updated successfully, but these errors were encountered: