rfc:intldatetimepatterngenerator
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:intldatetimepatterngenerator [2021/04/30 16:22] – Remove note about secondary vote, make clear that short naming is preferred deltragon | rfc:intldatetimepatterngenerator [2021/06/10 11:48] (current) – nikic | ||
---|---|---|---|
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 76: | 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=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== |
rfc/intldatetimepatterngenerator.1619799768.txt.gz · Last modified: 2021/04/30 16:22 by deltragon