rishmalho on Nostr: Referential transparency and higher trust ability when reading code(imo). I think ...
Referential transparency and higher trust ability when reading code(imo).
I think pure functional is a stricter but “purer”(no pun intended) way to reason about code anyway vs impure functional/purely imperative styles.
You can absolutely use these benefits in some other languages, at least from my (somewhat limited) experience. Racket (scheme) is one example, but another, perhaps more popular being Scala. (monads)
I’ve yet to dive deeper into Haskell tbh but you raised an interesting observation & who knows I might finally get into it haha
Published at
2023-04-02 20:39:58Event JSON
{
"id": "e671c23b4acaeaf7e7d5f58105167193258eefa7f9eb190104ea1c076330c2c7",
"pubkey": "41b93cde3bb1bfb51d287f0cc50161382b31aaf5f5a6ad0c090a99373d018bf9",
"created_at": 1680467998,
"kind": 1,
"tags": [
[
"e",
"26fe4dd011c419845222ee34f0104c04f02f840b39143db62352d9ec6e4a4092"
],
[
"p",
"5c10ed0678805156d39ef1ef6d46110fe1e7e590ae04986ccf48ba1299cb53e2"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
]
],
"content": "Referential transparency and higher trust ability when reading code(imo).\n\nI think pure functional is a stricter but “purer”(no pun intended) way to reason about code anyway vs impure functional/purely imperative styles.\n\nYou can absolutely use these benefits in some other languages, at least from my (somewhat limited) experience. Racket (scheme) is one example, but another, perhaps more popular being Scala. (monads)\n\nI’ve yet to dive deeper into Haskell tbh but you raised an interesting observation \u0026 who knows I might finally get into it haha",
"sig": "351553a5b18a9d04cf0465d89d4df9ad43a3d4f7a3359bcc37aa179c1f52235e417173d18b1fd27ebe12c35557bd7bb5900ab2b55b69be7fd2c80d72c365a1f3"
}