Skip to main content
Correct grammatical error introduced by copy-editor.
Source Link
Steve Jessop
  • 280.7k
  • 40
  • 473
  • 709

It depends how long the function is. The longer the function, the highergreater the chance that someone modifying it in future will write data thinking that it means the global. In fact, it means the local, but because the function is so long, it's not obvious to them that there exists a local with that name.

For your example function, I think that shadowing the global is not bad at all.

It depends how long the function is. The longer the function, the higher chance that someone modifying it in future will write data thinking that it means the global. In fact, it means the local, but because the function is so long, it's not obvious to them that there exists a local with that name.

For your example function, I think that shadowing the global is not bad at all.

It depends how long the function is. The longer the function, the greater the chance that someone modifying it in future will write data thinking that it means the global. In fact, it means the local, but because the function is so long, it's not obvious to them that there exists a local with that name.

For your example function, I think that shadowing the global is not bad at all.

Active reading.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

It depends how long the function is. The longer the function, the morehigher chance that someone modifying it in future will write data thinking that it means the global. In fact, it means the local, but because the function is so long, it's not obvious to them that there exists a local with that name.

For your example function, I think that shadowing the global is not bad at all.

It depends how long the function is. The longer the function, the more chance that someone modifying it in future will write data thinking that it means the global. In fact it means the local but because the function is so long it's not obvious to them that there exists a local with that name.

For your example function, I think that shadowing the global is not bad at all.

It depends how long the function is. The longer the function, the higher chance that someone modifying it in future will write data thinking that it means the global. In fact, it means the local, but because the function is so long, it's not obvious to them that there exists a local with that name.

For your example function, I think that shadowing the global is not bad at all.

Source Link
Steve Jessop
  • 280.7k
  • 40
  • 473
  • 709

It depends how long the function is. The longer the function, the more chance that someone modifying it in future will write data thinking that it means the global. In fact it means the local but because the function is so long it's not obvious to them that there exists a local with that name.

For your example function, I think that shadowing the global is not bad at all.