3 ms·
I can actually read some of the syntax. I guess that a mathematical background helps when you're accustomed to seeing function definitions that map one real to
by Natsu 16y ago
I can actually read some of the syntax. I guess that a mathematical background helps when you're accustomed to seeing function definitions that map one real to another real or some of the other constructs. And I certainly recognize interfaces from Java (and why they can be a lot nicer than C++ style inheritance).
What still gets me are some of the basic functional programming concepts like monads and the y combinator, which obviously aren't unique to Haskell. Yeah, I've read Wikipedia on both of those (more than once). And several other things. I've even written some Lisp for my employer. But some of the concepts have yet to "click." I know monads encapsulate side effects or something (and the y combinator finds the fixed points of a function), but I feel like I just don't get the details of how it works.
After all, you don't need to know anything about monads to call the print function.
- eru 16y agoMonads are easy to understand: A monad is exactly anything that satisfies the three monad laws. If you have worked with mathematical groups and have seen how mathematicians can look at very disparate things with their group-goggles and find similarities, you will appreciate monads. The y combinator is a nice parlour trick (if you define it in lambda calculus without using any other recursion primitives), and research vehicle. But I did not apply it once, yet. And I've tried. If you want to get combinatorial logic (including the y combinator), read "To Mock a Mockingbird". And do all the puzzles, of course. Actually you should read it, whether you want to learn anything about combinatorial logic or not. It is such a good book.
- Natsu 16y agoThanks, I'll read that.