rfc:additional_soft_reservations_for_php7

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:additional_soft_reservations_for_php7 [2015/07/03 22:08] – more precise (?) nikicrfc:additional_soft_reservations_for_php7 [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 17: Line 17:
 ==== void ==== ==== void ====
  
-**Where**: As the last part of a class, interface or trait name.+**Where**: As the last segment of a class, interface or trait name. As such the names ''Void'' and ''Foo\Bar\Void'' are reserved, while ''Foo\Bar\MyVoid'' and ''Void\Foo\Bar'' are okay.
  
 **Why**: ''void'' is a likely candidate for the demarcation of void functions (which do not return a value). Alternatively ''null'' can be used for this purpose, which is already reserved. However both possibilities should be kept open until we reach a decision on this question. **Why**: ''void'' is a likely candidate for the demarcation of void functions (which do not return a value). Alternatively ''null'' can be used for this purpose, which is already reserved. However both possibilities should be kept open until we reach a decision on this question.
Line 23: Line 23:
 ==== enum ==== ==== enum ====
  
-**Where**: In any context which is not protected by the [[https://wiki.php.net/rfc/context_sensitive_lexer|context sensitivity RFC]]. This includes any part of class, interface, trait and function names.+**Where**: In any context which is not protected by the [[https://wiki.php.net/rfc/context_sensitive_lexer|context sensitivity RFC]]. This includes any segment of class, interface, trait and function names.
  
 **Why**: There already is an [[https://wiki.php.net/rfc/enum|enum RFC]] which will be proposed for PHP 7.x and requires this reserved keyword. **Why**: There already is an [[https://wiki.php.net/rfc/enum|enum RFC]] which will be proposed for PHP 7.x and requires this reserved keyword.
rfc/additional_soft_reservations_for_php7.1435961284.txt.gz · Last modified: 2017/09/22 13:28 (external edit)