rfc:immutability
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:immutability [2018/02/18 23:33] – marijic.silvio | rfc:immutability [2018/02/19 21:09] – marijic.silvio | ||
---|---|---|---|
Line 22: | Line 22: | ||
**Cons** | **Cons** | ||
- | - (Please point it out more disadvantages) | + | - Currently arrays on immutable properties are not supported. |
Line 84: | Line 84: | ||
</ | </ | ||
- | Resources are not allowed to be assigned to immutable properties because of fact that resources, by nature, are not immutable. | + | Resources are not allowed to be assigned to immutable properties because of fact that resources by nature are not immutable. |
<code php> | <code php> | ||
class File { | class File { | ||
Line 107: | Line 107: | ||
} | } | ||
- | $file = new A([' | + | $a = new A([' |
</ | </ | ||
Line 289: | Line 289: | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
- | - PHP 7.2 | + | To be discussed. |
===== RFC Impact ===== | ===== RFC Impact ===== | ||
Line 320: | Line 320: | ||
===== Future Scope ===== | ===== Future Scope ===== | ||
+ | Add support for arrays on immutable properties. | ||
+ | Expand immutability to regular variables also. | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
Line 327: | Line 329: | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
- | [[https:// | + | [[https:// |
rfc/immutability.txt · Last modified: 2018/02/20 11:19 by marijic.silvio