-
-
Notifications
You must be signed in to change notification settings - Fork 209
Open
Labels
Description
Mission
- Fix all the things that I got wrong in 1.x
- Avoid accidental breakage as much as possible
❗ Dangerous
👍 Easy
Topics
-
❗ Fix order of
composearguments ([IHNFIWIWD] The compose function is executed left to right #117)- In 1.x
- Introduce
compose_2that fixes the argument order - Deprecate
composeand ask people to migrate tocompose_2 - Introduce
pipethat does whatcomposedoes in 1.x
- Introduce
- In 2.0
- Rename
composetocompose - Deprecate
compose_2and ask users to usecomposeinstead
- Rename
- In 1.x
-
Fully fledged PHP 7.1 support
- 👍 Use type hints everywhere
- Should we return
iterableorarrayfor container return values?
- Should we return
- ❗ Should we use generators for lazy evaluation?
- 👍 Use type hints everywhere
-
❗ Do we want to continue passing
value, index, collection?- E.g.
mapsuffers from the same problems JavaScript’smapsuffers from
- E.g.
> ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"].map(parseInt)
[ 0, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, 10 ]- ❗ Switch argument order from
collection, functiontofunction, collection- Is the more common signature in the functional world
- Reads better as "map F over L"
Reactions are currently unavailable