Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106513 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 28824 invoked from network); 10 Aug 2019 00:30:55 -0000 Received: from unknown (HELO tbjjbihbhebb.turbo-smtp.net) (199.187.174.11) by pb1.pair.com with SMTP; 10 Aug 2019 00:30:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=php.net; s=turbo-smtp; x=1565992705; h=DomainKey-Signature:Received: Received:MIME-Version:References:In-Reply-To:From:Date: Message-ID:Subject:To:Cc:Content-Type; bh=5PWGfeGZ1yy8c3pSeNM+u1 +B9QT+CEG3wk514eeP7C4=; b=vgqP2oF5F8hzMPTYscvPrJUpK44hp5UiudGnrS iM1d2yi3el4NpzTrSkA+YwFiW3jXd8yqYzXkK4+1MIImMD3rudVAhdsOw7PFygkf 2kOynousVVrDXOel6wNDjBf9lZ6NNVmRIo9pLhZy+Y7ozDTBBS4vfzqI23Sgf1aV 5bLOQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=turbo-smtp; d=php.net; h=Received:Received:X-TurboSMTP-Tracking:X-Gm-Message-State:X-Google-Smtp-Source:X-Received:MIME-Version:References:In-Reply-To:From:Date:X-Gmail-Original-Message-Id:Message-ID:Subject:To:Cc:Content-Type; b=hkHGgqGZ9g6pNEJDiJ3kpNqqmJHVJ6jGojZ+qLNcivmQ2kziipW+au5NzHwJhC ixl02AKCz23xV6eQUWirY3Yq9Y/eik5GSBCbRbkt0coNnv/vQqtHEBkPAz0fttjg TRL4ukq8YSISfAlqVqnQkqwodc1eDxw6tTrkO7EMGq6r8=; Received: (qmail 8949 invoked from network); 9 Aug 2019 21:58:25 -0000 Received: X-TurboSMTP-Tracking: 5214294487 X-Gm-Message-State: APjAAAXOE3h+2RIAJS/Qrsqer7L9qdrGh/q0UUl2v2kfNFSBbSJM1gQn MqCpO1Ib4tgJ1wJC/8d7OUQzofQdEZ7QPhm9Lz0= X-Google-Smtp-Source: APXvYqwsIdnW2tE1XL5djNxwiXamIgfHzyoAHYQkNXt6TfCkFuK7S0FSpdO1SW7+yyD6pEW3fxunPe6l1bIcTi327Nc= X-Received: by 2002:aed:2b01:: with SMTP id p1mr20302196qtd.33.1565387904471; Fri, 09 Aug 2019 14:58:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 10 Aug 2019 00:58:13 +0300 X-Gmail-Original-Message-Id: Message-ID: To: Sara Golemon Cc: Internals Content-Type: multipart/alternative; boundary="000000000000fb592d058fb6457f" Subject: Re: [PHP-DEV] P++: FAQ From: zeev@php.net (Zeev Suraski) --000000000000fb592d058fb6457f Content-Type: text/plain; charset="UTF-8" On Sat, Aug 10, 2019 at 12:03 AM Sara Golemon wrote: > On Fri, Aug 9, 2019 at 2:54 PM Zeev Suraski wrote: > > > It's available here: https://wiki.php.net/pplusplus/faq > > > > > It's possible I missed something while on holiday. There are certainly a > lot of messages to page through. I dig the idea of resolving this > tug-of-war between progress and BC, but I'm not 100% clear on what the > final goals are. I understand that we're talking about more aggressively > breaking BC in this new mode while preserving BC in "normal" PHP files, but > I think it would help the conversation if we enumerated specific aims. > > Some guesses on what we're talking about: > [snip] > Am I *completely* off base? > I don't think you are. In addition to these and those brought up by Mark - other things could be making the new dialect stricter across the board - including operators, array indices; Requiring variable declarations; Potentially changing some conversion rules (for explicit conversions), and potentially changing some operator behavior (not just in terms of strictness). As Bob pointed out I'm rusty, but I do think that we can solve the short tags issue in this way. At the lexer level, if we see the tag, we set short tags to off for the scope of the file before moving forward. But more importantly, this approach can allow us to implement different BC breaking strategies (and not just for language features, but also for built-in functions). Zeev --000000000000fb592d058fb6457f--