PHP Digest No. 90 - interesting news, materials and tools (August 1 - 14, 2016)



    We bring to your attention the next selection with links to news and materials. Enjoy reading!

    News and Releases



    Php


    • RFC: Immutable classes and properties - Draft proposals for implementing immutable classes and properties:

      immutable classEmail{
        public $email;
        publicfunction__construct($email){
          $this->email = $email;
        }
      }
      $email = new Email("foo@php.net");
      $email->email = "bar@php.net"// Вызов повлечет Fatal Error

    • RFC: Arrow Functions - Last year, a short syntax proposal $x ~> $x * 2 for anonymous functions did not pass the vote. Then alternative syntax has been proposed a la EcmaScript 6, but with the addition of a keyword function: function($x) => $x + $y . Now the proposal has been updated and the syntax is being considered: ^(parameter_list) => expr

      $y = 1;
      $versionA = ^($x) => $x + $y;
      // Эквивалентно
      $versionB = function($x)use($y){
          return $x + $y;
      };

    Instruments



    Learning Materials



    Audio and video



    Thanks for attention!

    If you notice a mistake or inaccuracy - please inform me in PM .
    Questions and suggestions write to mail or twitter .

    Send links to interesting articles or useful tools that were not in the PHP Digests , and your name will be next to the link in the release.

    » Send link
    » Quick search for all digests
    Previous release: PHP Digest No. 89

    Also popular now: