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

Erroneous descriptions in file: "try-samples/csharp8/static-local-functions.md" #54

Open
lord-saumagen opened this issue Feb 14, 2020 · 0 comments

Comments

@lord-saumagen
Copy link

lord-saumagen commented Feb 14, 2020

Since there is more than one error in this page, I'm going through the errors by number.

Please take a look at the screenshot below.

  1. There is no function named "LocalFunction" declared but a function named "localCounter".
  2. There is no variable "y" declared in the enclosing scope.
  3. There is no method "M" declared which forms the enclosing scope but a function named "Counter".

The page shows also the anti-pattern of "constantly renamed variables" and doesn't stick with the
C# naming conventions. That are no errors but it's bad style. Since there is a good chance that programming novices might read this page, they might come to the conclusion that bad style isn't something to worry about.

Please don't give that impression.

Kind regards, Lord Saumagen.

Static_Local_Function

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