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

  • sicilian_najdorf
    replied
    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.
    https://wiki.php.net/rfc/shorter_attribute_syntax


    match expression will also make it at php 8.
    https://wiki.php.net/rfc/match_expression_v2

    Leave a comment:


  • uid313
    replied
    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.

    Leave a comment:


  • JustinTurdeau
    replied
    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.

    Leave a comment:


  • gnulinux82
    replied
    >PHP
    >fast

    Top fucking kek.

    Leave a comment:


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

    Leave a comment:


  • AJenbo
    replied
    Exctied about objects replacing resource

    Leave a comment:


  • 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...

    http://www.phoronix.com/scan.php?pag...pha-1-Released
Working...
X