Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Functional programming beyond Haskell

Name: Anonymous 2015-02-20 8:36

We have all learned functional programming in Haskell, but there are more functional languages like Lisp, Scheme, ML, and Clean.

Why should we even bother to look further than Haskell?

- You want your programs to run faster.
- Monads drive you mad (what are they anyway? warm fuzzy things?).
- You need objects.
- You sometimes need a more powerful module system.
http://www.cs.uu.nl/wiki/pub/Stc/BeyondFunctionalProgrammingInHaskell:AnIntroductionToOCaml/ocaml.pdf

Name: Anonymous 2015-02-28 16:15

>>94
Your google-fu is spectacular yet transparent. Functors are part of the language.
OK cretin, let's do it your way. Let's totally ignore the case I've been running with (division) in favour of your straw man. Let's take length. So I have a block of code containing length foo. By your assumption I don't care bout the actual type of foo, but now I want to add something to it. Oh shit! Suddenly I need to know if it's a list so I can prepend to it, or a hash so I need a key to go with the value, or a mutable array so I should be smashing my eyes open with a hammer, or maybe I can just use + on it and hope for the best, eh?

>>95
It's hardly curious. You basically answered yourself. That, and the fact that integers are treated specially by the GC though floats are boxed, but I assumed this other guy knew that because it's so common in functional languages (a trait shared with Lisp and any other language with 31- or 63-bit numbers).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List