rfc:nullable_intersection_types
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:nullable_intersection_types [2021/07/23 12:32] – nicolasgrekas | rfc:nullable_intersection_types [2021/08/27 20:15] – nicolasgrekas | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2021-07-22 | * Date: 2021-07-22 | ||
* Author: Nicolas Grekas, nicolasgrekas@php.net | * Author: Nicolas Grekas, nicolasgrekas@php.net | ||
- | * Status: | + | * Status: |
* Implementation: | * Implementation: | ||
* First Published at: https:// | * First Published at: https:// | ||
Line 28: | Line 28: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | On the reflection side, '' | ||
===== Rationale ===== | ===== Rationale ===== | ||
Line 39: | Line 41: | ||
For all these reasons, this RFC proposes to make intersection types nullable, and to make them so right away in PHP 8.1. | For all these reasons, this RFC proposes to make intersection types nullable, and to make them so right away in PHP 8.1. | ||
+ | |||
+ | About reflection, one could imagine a more complex model based on a '' | ||
===== Future Scope ===== | ===== Future Scope ===== | ||
Line 97: | Line 101: | ||
* Preferred syntax: "?" | * Preferred syntax: "?" | ||
* Intersections should be: without brackets around / with brackets around / allow both styles | * Intersections should be: without brackets around / with brackets around / allow both styles | ||
+ | |||
+ | ===== Vote ===== | ||
+ | |||
+ | Voting starts 2021-08-13 09:30 UTC and ends 2021-08-27 17:00 UTC. | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <doodle title=" | ||
+ | * "?" | ||
+ | * " | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <doodle title=" | ||
+ | * without brackets around | ||
+ | * with brackets around | ||
+ | * allow both styles | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== |
rfc/nullable_intersection_types.txt · Last modified: 2021/08/29 19:13 by marandall