タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

phpとrfcに関するshimookaのブックマーク (4)

  • PHP7.4の新機能その2 - Qiita

    PHP7.4 / PHP7.4その1 / PHP7.4その2 2019/06/13、PHP7.4.0α1がリリースされました。 今後はベータ、RCと完成度を高めていき、7.4.0のリリースは2019/11/28が予定されています。 なお仕様フィックスは2019/07/13で、それ以降は大きな変更は入らないようになります。 逆に言うとそれまでは追加が入る可能性はあるのですが、既にα1も出たことですし、さすがにこれからのタイミングでプロパティ型指定やらアロー関数レベルの大改修が入ることはないでしょう。 ということで前回以降入った新機能や変更点を見てみることにします。 RFC Arrow functions 2.0 賛成51、反対8で受理。 アロー関数です。 // 新構文 $fn = fn($x) => $x + $y; // ↓と同じ $fn = function ($x) use ($y)

    PHP7.4の新機能その2 - Qiita
  • PHP: rfc:scalar_type_hints_v5

    Author: Anthony Ferrara ircmaxell@php.net (original Andrea Faulds, ajf@ajf.me) This RFC proposes the addition of four new type declarations for scalar types: int, float, string and bool. These type declarations would behave identically to the existing mechanisms that built-in PHP functions use. This RFC further proposes the addition of a new optional per-file directive, declare(strict_types=1);, w

    shimooka
    shimooka 2015/03/03
    v5まで行ってたのか。。。いい加減、入ってくれんかなぁ。。。
  • PHP: rfc:generators

    Generators provide an easy, boilerplate-free way of implementing iterators. As an example, consider how you would implement the file() function in userland code: function getLinesFromFile($fileName) { if (!$fileHandle = fopen($fileName, 'r')) { return; } $lines = []; while (false !== $line = fgets($fileHandle)) { $lines[] = $line; } fclose($fileHandle); return $lines; } $lines = getLinesFromFile($

  • PHP: rfc:builtinwebserver

    When it comes to web development, most people wouldn't doubt PHP's best friend is Apache HTTPD Server. Having said that, developers who experienced any of web application frameworks of other scripting languages such as Ruby on Rails and Django may well find it cumbersome to set up httpd.conf just to use it within a development environment as those are most likely accompanied by a tiny web server t

    shimooka
    shimooka 2011/03/03
    キタ!
  • 1