funcool / funcool/clojurescript-unraveled
Better explanation of side effects
Open
- Dominant language
- XSLT
- Stars
- 479
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
I disagree with this statement:
> 3.7.2. Blocks [...]
> A side effect is something that is not necessary for the return value.
1. Some side effects might also affect the return value. The return value might change depending on some external state.
2. A side effect should be observable from the outside of the function scope.
```clojure
(do
(println "something") ; this is a side effect
(- 1 2) ; this isn't
(+ 3 4))
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.