r/functionalprogramming • u/IamZelenya • Mar 01 '23
Intro to FP Why FP devs obsessed with Referential Transparency
I want to clarify referential transparency, why it is so cool, what it has to do with side-effects, and what common misconceptions are. For instance, how can the code have no “side-effects”, but the program can print to the console?
Video: https://youtu.be/UsaduCPLiKc
📹 Hate watching videos? Check out the complementary article on dev.to, which covers the same content.
5
Upvotes
View all comments
Show parent comment
3
u/IamZelenya Mar 04 '23
Yeah, it doesn't have to be fully covered – but the more RT you have, the more you can reason about your code.