News for hackers. Stuff that matters.

jethrolarson

Re:Functional Programming Jargon on Wednesday November 08, 2017 @06:35PM (#15658229)
I considered that quite a lot while contributing to the repo but it's super easy to go overboard and turn a single definition into many pages of explanation. I feel that this glossary should be just a taste of the concepts in a shallow, practical, and hand-wavy way.

To be honest, each concept like "partial application", or "applicative functors" deserves an hour-long lecture or more but if the content went that deep I think it'd lose its current audience.

Re:Functional Programming Jargon on Wednesday November 08, 2017 @06:28PM (#15658172)
I don't think this is strictly true. Sure there's liftA2 that does that but as a general concept, you can lift things of various kinds into a monad (or other thing like that). For example, `pure`/`return` (`of` in fantasy-land) lifts a value into an applicative/monad.

I'm not sure if lifting is just application of a coalgebra but I'm still learning too. :)

Re:Functional Programming Jargon on Thursday July 28, 2016 @01:28AM (#12178485)
It's hard to capture monad in a paragraph and a couple examples. The utility of chain/flatmap doesn't get too interesting until you apply it to the Option Type or Promises but I didn't want to require readers to come with knowledge of them. Maybe a promise-based example isn't asking too much though
Re:Functional Programming Jargon on Thursday July 28, 2016 @01:15AM (#12178445)
Thanks for the feedback. I've been trying to direct the definitions to be informal and understandable but many contributions come in with a different voice. Some of the definitions are first draft attempts just to get something in place.

It's been awesome to see the sudden popularity of our humble glossary :)

Re:Functional Programming Jargon on Thursday July 28, 2016 @01:08AM (#12178419)
Some of the words defined like comonad were added merely because they're defined in the fantasy-land spec. It's all still a WIP so contributions or corrections are welcome.