PHP Digest No. 133 (June 10 - 24, 2018)
Fresh selection with links to news and materials. In release: PHP 7.3.0 Alpha 2, plans for PHP 8.0, Typed Properties and other RFCs from PHP Internals, a portion of useful tools, and much more.
Enjoy reading!
News and Releases
Php internals
- [RFC]: Typed Properties 2.0 - A large and very detailed proposal from Nikita Popov and Bob Weinand for implementing typed properties. Earlier there was an attempt to realize this opportunity, but the proposal did not pass the threshold of 2/3 votes. The current document addresses 2 key problems of the past implementation: types for static properties are supported, and references to typed properties. Therefore, this time there is every chance of voting. The corresponding pull request is ready.
The question of the version remains open: PHP 7.3 is currently being considered, but if difficulties arise, it may be postponed until 7.4 (8). - [RFC] Deprecate and Remove Case-Insensitive Constants - Using
define()
you can define a case-insensitive constant. It is proposed to remove this feature. - [RFC] Deprecate and remove continue targeting switch -
continue
inside switch
behaves like break
, although this is not the case in other languages. It is proposed to correct the behavior. - strict switch - Sara Golemon suggested implementing a strict
switch
as an idea:
Instruments
Study materials
Audio and video
Thanks for attention!
If you notice an error or inaccuracy - please inform the PM .
Write questions and suggestions by mail or twitter .
Send link
Search links for all digests
← Previous release: PHP Digest number 132
Source: https://habr.com/ru/post/415057/
All Articles