Skip to content

A variable name overloading a name in an outer block #96

@cushon

Description

@cushon

Original issue created by moladeyal@google.com on 2013-02-27 at 10:32 AM


The most typical case:
for (int i = 0; ... ) {
  ...
  for (int i = 0; ... ) {
    myArr[i] = ... // which i is it?
  }
}
Its almost always an error, or at the very least a horrible practice.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions