PHP PHP7 approaching feature freeze

Discussion in 'Programming Languages' started by Azareal, Feb 20, 2015.

  1. Azareal

    Azareal The AtomBB Overlord

    1,155
    317
    +474
    From the looks of it, PHP7 will be reaching it's feature freeze on March 15th, which means that no new features will be accepted into it other than the ones which have already been accepted.

    https://wiki.php.net/rfc#under_discussion
    There are some nice ones there which would be nice in PHP7, if they're accepted.
    In Operator and Scalar Type Hints are nice ones that are under discussion, as I certainly would like to use those.
     
    • Informative! Informative! x 1
    • List
  2. Azareal

    Azareal The AtomBB Overlord

    1,155
    317
    +474
    Phew, looks like anonymous classes may go to vote before the PHP7 feature freeze.
    In operator went out the window, breaks too much BC apparently.

    Scalar type hints have two competing proposals, and it might be hard for either one to get a 66% + 1 majority.
    One of them tightens up the existing typing rules, however the opposing side says that it'll break too much BC in existing code which uses the internal functions.
    The other one has two modes, a weak mode and a "strict" mode. The opposing side doesn't like having two modes, as some developers may see the "strict" mode as the "proper" way of doing things.
     
    Last edited: Mar 8, 2015
  3. Azareal

    Azareal The AtomBB Overlord

    1,155
    317
    +474
    And.. Another competing type hinting proposal has popped up. Two days before the feature freeze.
    Some people are already switching their allegiances to it. Well, I beginning to doubt that type hinting is getting into PHP7, due to the super-majority requirements.
    This time, it's pure weak type hints.

    Coercive (one that wants to tighten up the existing typing rules) is failing horribly during the voting phase. It's 60% or so against.
    On the bright side, the proposal that turns some keywords from reserved to semi-reserved to let you use them in method names, etc. is getting a lot of votes.
     
  4. s.molinari

    s.molinari Leader of Skooppa

    5,066
    642
    +1,958
  5. Azareal

    Azareal The AtomBB Overlord

    1,155
    317
    +474
    https://wiki.php.net/rfc#php_70
    The list of features that have been implemented in PHP7.

    https://wiki.php.net/rfc/context_sensitive_lexer
    This one seems to have been accepted, but it's not on the above list yet. Maybe, it hasn't been implemented yet.

    https://wiki.php.net/rfc/anonymous_classes
    Anonymous Classes has more or less passed, although the voting hasn't closed yet.
    If you scroll down to the voting section, it's overwhelmingly in favor of it (42 votes for it and 2 against).

    http://news.php.net/php.internals/85366
    This suggestion is very scary. I can only imagine what sort of nasty things that someone could do with it..
    I heavily doubt that it will make it in at all though (not for 7 at the very least, as it's past the feature freeze).
     
    Last edited: Mar 22, 2015
    • Informative! Informative! x 1
    • List
  6. s.molinari

    s.molinari Leader of Skooppa

    5,066
    642
    +1,958
  7. Xon

    Xon Adherent

    293
    177
    +418
    That idea is insane, utterly insane.

    So it probably would have been added to earlier versions of php. :whistle:

    Thankfully modern php is trying to move away from unexpected insanity like that braindead idea.
     
  8. Azareal

    Azareal The AtomBB Overlord

    1,155
    317
    +474
    I thought that it probably wouldn't have been accepted, but the idea is so crazy that I had to bring it up.
     
Verification:
Draft saved Draft deleted
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.