rfc:intldatetimepatterngenerator
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:intldatetimepatterngenerator [2021/04/30 16:18] – Add not about secondary vote deltragon | rfc:intldatetimepatterngenerator [2021/05/28 14:09] – Close vote deltragon | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2021-04-24 | * Date: 2021-04-24 | ||
* Author: Mel Dafert, mel@dafert.at | * Author: Mel Dafert, mel@dafert.at | ||
- | * Status: | + | * Status: |
* Implementation: | * Implementation: | ||
* First Published at: http:// | * First Published at: http:// | ||
+ | * Target Version: PHP 8.1 | ||
===== Introduction ===== | ===== Introduction ===== | ||
Line 32: | Line 33: | ||
public function getBestPattern(string $skeleton): string|false {} | public function getBestPattern(string $skeleton): string|false {} | ||
} | } | ||
+ | |||
+ | // Procedural style: | ||
+ | function datepatterngenerator_create(? | ||
+ | |||
+ | function datepatterngenerator_get_best_pattern(IntlDatePatternGenerator $patternGenerator, | ||
</ | </ | ||
Line 59: | Line 65: | ||
'' | '' | ||
- | * This would be consistent with ICU's '' | + | * This would be consistent with ICU's '' |
* In theory, this would also mean that people familiar with ICU would immediately know what to expect. | * In theory, this would also mean that people familiar with ICU would immediately know what to expect. | ||
* Users searching the web for the ICU name will find this class easier, and vice versa. | * Users searching the web for the ICU name will find this class easier, and vice versa. | ||
Line 68: | Line 74: | ||
* Searchability does not appear to be an issue, as searching for 'ICU DatePatternGenerator' | * Searchability does not appear to be an issue, as searching for 'ICU DatePatternGenerator' | ||
* HHVM/Hack also chose this name: https:// | * HHVM/Hack also chose this name: https:// | ||
+ | |||
+ | '' | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 74: | Line 82: | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
8.1 | 8.1 | ||
- | |||
- | ===== Open Issues ===== | ||
- | |||
- | ==== Constructor ==== | ||
- | Like '' | ||
- | Other classes inside the intl extension (like '' | ||
===== Future Scope ===== | ===== Future Scope ===== | ||
The ICU '' | The ICU '' | ||
- | ===== Proposed Voting Choices | + | ===== Vote ===== |
- | Yes/No, requiring a 2/3 majority. | + | Yes/No, requiring a 2/3 majority. |
- | + | <doodle title=" | |
- | Secondary vote to decide between '' | + | * Yes |
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== |
rfc/intldatetimepatterngenerator.txt · Last modified: 2021/06/10 11:48 by nikic