Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
rfc:cachediterable_straw_poll [2021/06/05 16:34] – tandre | rfc:cachediterable_straw_poll [2021/06/05 16:40] – tandre |
---|
====== PHP RFC: Straw poll: Namespace to use for CachedIterable and iterable functionality ====== | ====== PHP RFC: Straw poll: Namespace to use for CachedIterable and iterable functionality ====== |
* Version: 0.1 | * Version: 0.2 |
* Date: 2021-06-01 | * Date: 2021-06-01 |
* Author: Tyson Andre, <tandre@php.net> | * Author: Tyson Andre, <tandre@php.net> |
In particular, https://wiki.php.net/rfc/namespaces_in_bundled_extensions#core_standard_spl and https://wiki.php.net/rfc/namespaces_in_bundled_extensions#existing_non-namespaces_symbols_and_consistency can be interpreted in different ways - the RFC recommends the usage of namespaces for functionality in core, but permits functionality to use the global namespace if it would be consistent with similar non-namespaced functionality already in core/standard/spl. | In particular, https://wiki.php.net/rfc/namespaces_in_bundled_extensions#core_standard_spl and https://wiki.php.net/rfc/namespaces_in_bundled_extensions#existing_non-namespaces_symbols_and_consistency can be interpreted in different ways - the RFC recommends the usage of namespaces for functionality in core, but permits functionality to use the global namespace if it would be consistent with similar non-namespaced functionality already in core/standard/spl. |
| |
In addition to that, because this says "may" and "should" instead of "must", there | In addition to that, because that RFC says "may" and "should" instead of "must", it can be interpreted differently by different people. (I am assuming those words meant something similar to https://datatracker.ietf.org/doc/html/rfc2119 but that was not specified in the namespaces in bundled extensions RFC) |
| |
===== Proposal ===== | ===== Proposal ===== |
| |
Create a straw poll for the functionality from [[rfc:cachediterable|CachedIterable]] and successors to the [[rfc:any_all_on_iterable|any() and all() on iterables]] RFC: [[https://github.com/php/php-src/pull/6053|any()/all()/none()/find()/reduce()]] | In this straw poll, gather feedback for the functionality from [[rfc:cachediterable|CachedIterable]] and successors to the [[rfc:any_all_on_iterable|any() and all() on iterables]] RFC: [[https://github.com/php/php-src/pull/6053|any()/all()/none()/find()/reduce()]] |
| |
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== |
If you are opposed to this functionality being added to PHP in any form, please note this in addition to your preferred namespacing choice, given that https://wiki.php.net/rfc/namespaces_in_bundled_extensions has passed. | If you are opposed to this functionality being added to PHP in any form, please note this in addition to your preferred namespacing choice, given that https://wiki.php.net/rfc/namespaces_in_bundled_extensions has passed. |
| |
https://wiki.php.net/rfc/namespaces_in_bundled_extensions strongly discourages some of the previously considered options | ==== Namespace choices ==== |
| |
| https://wiki.php.net/rfc/namespaces_in_bundled_extensions strongly discourages some of the previously considered namespace options with too few or too many namespace parts. |
| |
<blockquote> | <blockquote> |
</doodle> | </doodle> |
| |
==== Preferred namespace to use for iterable ==== | ==== Preferred namespace case to use for iterable/Iterable ==== |
| |
I didn't notice this earlier, but the [[rfc:https://namespaces_in_bundled_extensions|Namespaces in Bundled Extensions RFC]] recommended (but didn't mandate) that "Namespace names should follow CamelCase." - so I'm not sure if ''iterable\'' or ''Iterable\'' makes the most sense to others. | I didn't notice this earlier, but the [[rfc:https://namespaces_in_bundled_extensions|Namespaces in Bundled Extensions RFC]] recommended (but didn't mandate) that "Namespace names should follow CamelCase." - so I'm not sure if ''iterable\'' or ''Iterable\'' makes the most sense to others. |
</doodle> | </doodle> |
| |
| ===== References ===== |
| |
| * https://externals.io/message/114687 "Namespaces in bundled extensions" and iterable additions to the standard library |
===== References ===== | * https://wiki.php.net/rfc/namespaces_in_bundled_extensions |
https://externals.io/message/114687 "Namespaces in bundled extensions" and iterable additions to the standard library | * https://wiki.php.net/rfc/any_all_on_iterable_straw_poll_namespace |