replace side-effect with side effect
This commit is contained in:
parent
291b5c05b9
commit
4aa9f818e8
10 changed files with 10 additions and 10 deletions
|
@ -522,7 +522,7 @@ function name(parameters, delimited, by, comma) {
|
|||
|
||||
To make the code clean and easy to understand, it's recommended to use mainly local variables and parameters in the function, not outer variables.
|
||||
|
||||
It is always easier to understand a function which gets parameters, works with them and returns a result than a function which gets no parameters, but modifies outer variables as a side-effect.
|
||||
It is always easier to understand a function which gets parameters, works with them and returns a result than a function which gets no parameters, but modifies outer variables as a side effect.
|
||||
|
||||
Function naming:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue