Skip to content

Language in Scope of function parameters vs. Drop scopes could be improved #1945

@lukaslueg

Description

@lukaslueg

Scopes of function parameters says

All function parameters are in the scope of the entire function body, [...]

Drop scopes directly above introduces the two - importantly distinct - outermost scopes:

  • The entire function scope is the outer most scope.
  • The function body block is contained within the scope of the entire function.

The avid reader might be confused about which of these two the language regarding function parameters is referring to:

  1. Does "the scope of the entire function body" refer to the outermost scope? Yet that paragraph says "the entire function", not "the entire function body".
  2. Alternatively, is "the scope of the entire function body" a reference to "The function body block"? Yet the second paragraph says "the function body block", not "function body".

The language wrt function parameters might be improved to ensure that readers understand which Drop Scope is being referred to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions