rfc:short-functions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:short-functions [2021/04/25 19:00] – Improve reasoning section crell | rfc:short-functions [2021/06/15 22:29] (current) – Fix RFC status ilutov | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2020-10-20 | * Date: 2020-10-20 | ||
* Author: Larry Garfield (larry@garfieldtech.com) | * Author: Larry Garfield (larry@garfieldtech.com) | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 150: | Line 150: | ||
==== Getter methods ==== | ==== Getter methods ==== | ||
- | Many classes consist primarily or almost entirely | + | Many classes consist primarily or almost entirely of methods that either return a property, or some computation off of a property. |
<code php> | <code php> | ||
Line 440: | Line 440: | ||
</ | </ | ||
- | Which is a really nice way to build up a pipeline through composition. | + | Which is a really nice way to build up a pipeline through composition. |
+ | |||
+ | <code php> | ||
+ | function doAThing(User $u) => $u | ||
+ | |> step1(?) | ||
+ | |> step2(?) | ||
+ | |> step3($val, ?) | ||
+ | |> step4(?, $var) | ||
+ | ; | ||
+ | </ | ||
==== clone-with ==== | ==== clone-with ==== | ||
Line 477: | Line 487: | ||
This is a simple up-or-down vote, requiring 2/3 approval to pass. | This is a simple up-or-down vote, requiring 2/3 approval to pass. | ||
- | ===== Patches | + | Voting started 2021-05-31 |
- | [[https:// | + | <doodle title=" |
+ | * Yes | ||
+ | * No | ||
+ | </doodle> | ||
- | ===== Implementation | + | ===== Patches and Tests ===== |
- | After the project is implemented, | + | |
- | - the version(s) it was merged into | + | |
- | - a link to the git commit(s) | + | |
- | - a link to the PHP manual entry for the feature | + | |
- | - a link to the language specification section (if any) | + | |
- | ===== References ===== | + | [[https:// |
- | Links to external references, discussions or RFCs | + | |
- | ===== Rejected Features ===== | ||
- | Keep this updated with features that were discussed on the mail lists. |
rfc/short-functions.1619377230.txt.gz · Last modified: 2021/04/25 19:00 by crell