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