-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Champion "Local Functions" (C# 7.0) #56
Comments
This is a "proposal issue" because we need to add a proposal/spec to the repo. |
Should inferring return type for local functions in a later version of C# as mentioned here- dotnet/roslyn#2930 (comment) be discussed in a separate issue? |
separate; this is for the feature as it shipped in C#7 |
I don't if here is the correct place for my question. What is the naming convention for local function? PascalCase or camelCase The roslyn project I saw camel case, but at Local Function Document use pascal case |
@Lilo42 |
Roslyn-IDE uses PascalCase since these are viewed the same as methods, just placed inside the body of something. As you can see, even on hte Roslyn team there are differing opinions on which way is most appropriate. I personally prefer PascalCase as it lets me easily see if i'm invoking some local/parameter/delegate, versus invoking something that is actually a Function/Method. As these are locals, there's not really going to be any strict guidance on how you name things as it's basically up to you. |
@CyrusNajmabadi and @YingdaBeyondsoft Thank you. I prefer PascalCase too. |
Specification in progress at dotnet/csharpstandard#104. |
See also
The text was updated successfully, but these errors were encountered: