rfc:clone_with_v2

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
rfc:clone_with_v2 [2025/03/30 12:00] – Fix title edorianrfc:clone_with_v2 [2025/03/30 12:03] (current) – Add design goals edorian
Line 89: Line 89:
     - Dynamic properties respect <php>#[AllowDynamicProperties]</php>     - Dynamic properties respect <php>#[AllowDynamicProperties]</php>
     - <php>__set</php> works as expected     - <php>__set</php> works as expected
 +
 +==== Design Goals ====
 +
 +When re-proposing this RFC, one of our goals was to take all previous discussion into account and propose something that is small in scope and cognitive load.
 +
 +This RFC explicitly rejects any BC impacting syntax choices like the proposed <php>with</php> keyword suggested previously, as we don't feel the scope of the feature warrants any BC impact.
 +
 +Likewise, all syntax has to exist in other parts of PHP already, to not add cognitive load to readers when they come across it.
 +
 +==== Example ====
 +
 +TBD (Throw order, etc)
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
Line 151: Line 163:
 ===== Rejected Features ===== ===== Rejected Features =====
  
-This RFC explicitly rejects any BC impacting syntax choices like the proposed <php>with</php> keyword suggested previously, as we don't feel the scope of the feature warrants any BC impact. +None
rfc/clone_with_v2.1743336019.txt.gz · Last modified: 2025/03/30 12:00 by edorian