haskellfoundation / hs-opt-handbook.github.io

The Haskell Optimization Handbook
https://haskell.foundation/hs-opt-handbook.github.io/
Creative Commons Attribution 4.0 International
169 stars 12 forks source link

Better citations for closures and sharing. #74

Open doyougnu opened 1 year ago

doyougnu commented 1 year ago

In the glossary I link to the wikipedia entry for closures. This is lazy, cite the lambda papers!

similarly in the sharing item I don't cite anything. This is also lazy! I should cite at least:

Then there should be a discussion on why Haskell, in general, does not have observable sharing. Answer, because that breaks referential transparency. That is, if you can tell if two pointers are equal then a function can produce different outputs from the same inputs.