redefine_constants_exception_strawpoll

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
redefine_constants_exception_strawpoll [2022/01/23 03:08] marandallredefine_constants_exception_strawpoll [2022/01/23 03:12] marandall
Line 1: Line 1:
 +====== 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. There have been a discussions in the past about upgrading the attempted redeclaration of constants to be an exception.
  
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 programming error.+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 (likely a ValueError) on the basis that attempting to redefine constant is impossible, so is a programming error.
  
 <doodle title="Strawpoll: Promote attempts at redeclaring constants to Exception" auth="Mark Randall" voteType="single" closed="false"> <doodle title="Strawpoll: Promote attempts at redeclaring constants to Exception" auth="Mark Randall" voteType="single" closed="false">
redefine_constants_exception_strawpoll.txt · Last modified: 2022/01/23 03:31 by marandall