redefine_constants_exception_strawpoll
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
redefine_constants_exception_strawpoll [2022/01/23 03:08] – marandall | redefine_constants_exception_strawpoll [2022/01/23 03:31] (current) – marandall | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | There have been a discussions in the past about upgrading the attempted redeclaration of constants to be an exception. | + | ====== Straw Poll: Redefine Constants Exception ====== |
+ | * Date: 2022-01-23 | ||
+ | * Author: Mark Randall, marandall@php.net | ||
+ | * Status: Strawpoll | ||
+ | |||
+ | There have been a discussions in the past about upgrading the attempted redeclaration of constants to be an exception | ||
Here is one from 2016 from Dmitry: | Here is one from 2016 from Dmitry: | ||
Line 9: | Line 14: | ||
Since this RFC was made in 2016, attempted redeclaration was promoted to a warning instead of a notice. | Since this RFC was made in 2016, attempted redeclaration was promoted to a warning instead of a notice. | ||
- | As internals has been making efforts in recent years to move towards saner error handling this seems like a suitable candidate for tightening up, so I would like to collect opinions on how many people would be in favour of bumping this warning once more up to an Error (likely a ValueError) on the basis that attempting to redefine constant is always | + | As internals has been making efforts in recent years to move towards saner error handling this seems like a suitable candidate for tightening up, so I would like to collect opinions on how many people would be in favour of bumping this warning once more up to an exception |
<doodle title=" | <doodle title=" |
redefine_constants_exception_strawpoll.1642907328.txt.gz · Last modified: 2022/01/23 03:08 by marandall