Announcement

Collapse
No announcement yet.

PHP 8.0 Alpha 1 Released - Running Faster And With New Features

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP 8.0 Alpha 1 Released - Running Faster And With New Features

    Phoronix: PHP 8.0 Alpha 1 Released - Running Faster And With New Features

    PHP 8.0 Alpha 1 was just released as the first development snapshot for this major PHP programming language update due to ship around the end of November...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Exctied about objects replacing resource

    Comment


    • #3
      Exciting times to be a PHP developer that has written to much in it to just change into another programming language!

      Comment


      • #4
        >PHP
        >fast

        Top fucking kek.

        Comment


        • #5
          Originally posted by TheOne View Post
          Exciting times to be a PHP developer that has written to much in it to just change into another programming language!
          PHP developers are suckers for punishment.

          Comment


          • #6
            I think that PHP is really nice, and it has improved hugely over the years and no longer deserves some of its past bad reputation.

            With PHP 8 finally it will get support for attributes/decorators, but unfortunately the syntax looks like it will be the rather ugly <<FooAttribute>> instead of @FooAttribute like Java and Python, or like [FooAttribute] in C#. The reason is that the @-sign is already used as a "silencer" operator to silence the output of functions that directly print/write in addition to returning a value, and that the []-characters are already used for array assignment.

            PHP initially didn't have support for object orientation though, so while classes are objects, primitive data types such as strings are not objects, so you cannot do things like like "Hello".reverse() which would have been nice.

            Comment


            • #7
              Originally posted by uid313 View Post
              I think that PHP is really nice, and it has improved hugely over the years and no longer deserves some of its past bad reputation.

              With PHP 8 finally it will get support for attributes/decorators, but unfortunately the syntax looks like it will be the rather ugly <<FooAttribute>> instead of @FooAttribute like Java and Python, or like [FooAttribute] in C#. The reason is that the @-sign is already used as a "silencer" operator to silence the output of functions that directly print/write in addition to returning a value, and that the []-characters are already used for array assignment.

              PHP initially didn't have support for object orientation though, so while classes are objects, primitive data types such as strings are not objects, so you cannot do things like like "Hello".reverse() which would have been nice.
              there is a php rfc that will change the syntax. based on the votes so far @@FooAttribute will be the new syntax. this is not yet included in the alpha release cause it is still in the voting stage.



              match expression will also make it at php 8.


              Comment

              Working...
              X