rfc:objects-can-be-falsifiable
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:objects-can-be-falsifiable [2022/11/02 01:00] – Update PR link joshbruce | rfc:objects-can-be-falsifiable [2022/11/04 23:14] (current) – Add static analysis section joshbruce | ||
---|---|---|---|
Line 145: | Line 145: | ||
// ]; | // ]; | ||
</ | </ | ||
+ | |||
+ | ===== Notes for static analysis ==== | ||
+ | |||
+ | Validate that the implementation can have both a true and false return, not just one or the other. | ||
===== Type juggling tables ==== | ===== Type juggling tables ==== | ||
Line 215: | Line 219: | ||
===== Open Issues ===== | ===== Open Issues ===== | ||
+ | |||
+ | ==== November 3, 2022 ==== | ||
+ | |||
+ | * How would this impact < | ||
+ | |||
==== July 16, 2020 ==== | ==== July 16, 2020 ==== | ||
- | * Default value for parameters with a class type can only be NULL | + | * Default value for parameters with a class type can only be NULL |
==== July 15, 2020 ==== | ==== July 15, 2020 ==== | ||
* How type safe is this really? (desire is to increase type safety - partially by being able to return a single type from a method that resolves to false) | * How type safe is this really? (desire is to increase type safety - partially by being able to return a single type from a method that resolves to false) | ||
- | * Impact to static analysis. Multiple static analyzers for PHP exist: Phan (Rasmus and Morrison), PHPStan (Mirtes), Psalm (Vimeo), and a general list - https:// | + | * RESOLVED (see static analysis section): |
* Interaction with equality operators. | * Interaction with equality operators. | ||
* Language around < | * Language around < | ||
* What version of PHP switched to only allowing < | * What version of PHP switched to only allowing < | ||
- | |||
==== < July 15, 2020 ==== | ==== < July 15, 2020 ==== | ||
Line 233: | Line 242: | ||
* Presumes impact similar to < | * Presumes impact similar to < | ||
* As of this writing I do not have the knowledge, practice, and practical understanding of implementing within PHP internals to implement this myself. If you're interested in (helping) implement this concept, please do reach out (help may be in the form guidance and instruction or full implementation, | * As of this writing I do not have the knowledge, practice, and practical understanding of implementing within PHP internals to implement this myself. If you're interested in (helping) implement this concept, please do reach out (help may be in the form guidance and instruction or full implementation, | ||
+ | |||
===== Unaffected PHP Functionality ===== | ===== Unaffected PHP Functionality ===== | ||
Line 288: | Line 298: | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
Declined: | Declined: |
rfc/objects-can-be-falsifiable.1667350816.txt.gz · Last modified: 2022/11/02 01:00 by joshbruce