Date: 2011-02-10 03:20 pm (UTC)
I mean, we hardly ever have pure functions, right? But in the code, say, in Java, people pretend to have pure functions, sighing and doing something when it turns out kaboom those are not pure functions. String.charAt, Integer.valueOf(), etc, they are not functions. I mean, they are arrows in a Kleisli category for a certain monad, but people pretend not to notice it.

Haskell, on the other hand, at least ideally, disambiguates between pure, total functions and the arrows that make sense only in a certain Kleisli category, forcing people to explicitly use something monadic.

To me, this is similar to Java generics (which Java people kind of hate) that force people to write a more type-safe code.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1 2345 6 7
8 9 10 11 121314
15161718 1920 21
222324252627 28
29 30     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 5th, 2025 03:01 am
Powered by Dreamwidth Studios