rfc:calls_in_constant_expressions_poll

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:calls_in_constant_expressions_poll [2020/02/17 01:53] tandrerfc:calls_in_constant_expressions_poll [2020/02/17 03:26] tandre
Line 91: Line 91:
 ===== References ===== ===== References =====
 https://wiki.php.net/rfc/calls_in_constant_expressions https://wiki.php.net/rfc/calls_in_constant_expressions
 +
 +https://externals.io/message/108630
  
 ===== Rejected Features ===== ===== Rejected Features =====
  
 Changing the behavior of instance properties was rejected. If functions were only invoked once, then ''private $x = generate_unique_id()'' would be unintuitive. If it was invoked for every created object, the implementation would require changes to internals that I'm probably unable to implement (these changes would affect unserialization, ways when object creation can throw, the behavior of internal functions that create and return objects, opcache, etc.) Changing the behavior of instance properties was rejected. If functions were only invoked once, then ''private $x = generate_unique_id()'' would be unintuitive. If it was invoked for every created object, the implementation would require changes to internals that I'm probably unable to implement (these changes would affect unserialization, ways when object creation can throw, the behavior of internal functions that create and return objects, opcache, etc.)
rfc/calls_in_constant_expressions_poll.txt · Last modified: 2020/03/04 13:53 by tandre