Better HN
topnewbestaskshowjobs
Log inSign up

jethrolarson

1 karma · joined Jun 15, 2012 (14y ago) · 6 submissions

Submissions

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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. :)

comment 10y ago · link · parent

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

comment 10y ago · link · parent

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 :)

comment 10y ago · link · parent

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.