- Semantic usefulness in different applicative contexts such as:
List
,Maybe
,Signal
,Random
,Promise
,Parser
- Readability in different applicative contexts
- Name clashes
- Semantic hints at sequential notion
- Relatedness to
andThen
andmap
- Signal to noise ratio of the name (e.g. how much semantic is conveyed wrt the length of the name)
Pros:
- works well used together with
map
(fn `map` this `andMap` that
) - hides sequential notion which is actually good for when it isn't relevant
Cons:
- hides sequential notion so may not be suitable for
Parser
andPromises
Pros:
- blends quite well with
List
,Maybe
,Signal
,Random
, especiallyParser
.Promise
is OK, too - does not clash with any function I know of
- resembles
andThen
from the PoV of nomenclature, combines well withmap
- suggests sequential execution, though not as clear as
andThen
Cons:
- suggests sequential execution, though not as clear as
andThen
- the "also" part doesn't add any significant meaning
Not sure how forking works on gists but here is my fork with edits: https://gist.github.com/kasbah/2784affbaeba9be89769