-
-
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"
leocavalcante, mateuszsip, Kaishiyoku, joranvar, VladisloveKeam and 2 moretzkmx