Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104944 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 66924 invoked from network); 25 Mar 2019 19:27:52 -0000 Received: from unknown (HELO mail-qt1-f193.google.com) (209.85.160.193) by pb1.pair.com with SMTP; 25 Mar 2019 19:27:52 -0000 Received: by mail-qt1-f193.google.com with SMTP id h39so11002056qte.2 for ; Mon, 25 Mar 2019 09:21:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mindplay-dk.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3VhJhKs89ljlQfUwXYgEVbvqVUS0vD0X7RnI0L8h/5I=; b=2Bh4YLgeG9WK1eiopy4gUkPE7Ve36UCeLsK+noTvEQO/j9v9MES4SZ4O2AUY+MSyiT bUn99qGqdqe+z0DzaYm4ABRnAZouMR6GNW4H8AozE0J7r5XJKxGjTHN6OOiQa3aoC9mu lUEJSm7DQhxvE7R6HjTE5z6eabyv5hjEda+I+cSQt5ebI7uqdtIIkVS5ocnkS5KZuebN k9PTHzYLP9AxB3xaVY7Urp2KhKOBnw47nm1iZADIw0HMUjXntFhQLP3uK40XM3r8PG8D 6qmYp1Ef182aOy7KKafvyIaHSAUiUAIQnZHZbsgnsP7DVG1enWQ00GLhAi2NVYTjBw1k /jJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3VhJhKs89ljlQfUwXYgEVbvqVUS0vD0X7RnI0L8h/5I=; b=Dgu1LSyXFnaYHkOYlsaJSHONhGfgmZPia0j81QI+JyI3ADpWJimXAKlJvb4zoG3Vna /pdAlzTbEj3gxiFmoH8+3KhURXfDYjXc5jzoUB+qA3CfkdYVFRgsbP0tz+7OCGyPBvvf dZ5zZwyPsbjGLAx4TSryf1wBlhyuuTCJIAeF2AIOFtWgd+lSQDVexLzS5PxM0+NOmfNn QE30U2hjBe6dktxrkfuGEuVi8NI85/nrJICgYs0okL9T9jTZ3q6MRFp3r02/irhPZ0wn X7tdxeZ/tUCvDU5v5rnpoFwzS+NvEJHMCOvD7ZrrN4azQgrfQGHiHHN8okWlCkG41d4E gYLg== X-Gm-Message-State: APjAAAXmarNQLhaDJ4WXskwzJXFeCAexuldgG9zvhcvXzEQ5jE0K8sT+ n6XsQtbKV225YLo8U8n5zSxv2xV0HGCH2WvtR9mam+T6 X-Google-Smtp-Source: APXvYqxvmfqZFPthcKXYCMmRUfwvPK9K0Q/68Bkbk+uuRuOtvmso43mlMLXW0IRkDWiuXUpsCa42+o3DNxq8f6Ae6AQ= X-Received: by 2002:ac8:2f1b:: with SMTP id j27mr21818364qta.263.1553530862632; Mon, 25 Mar 2019 09:21:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 25 Mar 2019 17:20:51 +0100 Message-ID: To: Rowan Collins Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000003733e90584ed9702" Subject: Re: [PHP-DEV] Deprecate short_open_tag ini directive? From: rasmus@mindplay.dk (Rasmus Schultz) --0000000000003733e90584ed9702 Content-Type: text/plain; charset="UTF-8" For the record, we're a mid-size organization, building a modern product on PHP 7 with a PSR-based stack. We've shunned template engines and rely heavily on short open tags and alternative control-structures - mainly because we insist on static analysis and IDE support, which we get by manually type-hinting a single view-model variable $view at the beginning of each template. No other template engine gives us what we want in terms of static analysis, type-checking or IDE support. The choice to rebuild a very large product in PHP vs e.g. Node, at the time, was in part motivated by PHP's template features - which, while it may look pretty verbose and ugly on the surface, has a huge advantage over basically anything else, e.g. static analysis with various QA tools, automated refactorings (rename etc.) in PHP Storm, and so on. The loss of this feature would be a substantial setback for our organization - for which there is no really good replacement. On Tue, Mar 12, 2019 at 10:51 AM Rowan Collins wrote: > On Mon, 11 Mar 2019 at 20:06, G. P. B. wrote: > > > From my understanding, the ` directive, > > so maybe we should deprecate PHP's short tag altogether? > > > > > I think when that's been proposed in the past, people have said they like > it for use in simple templates, often along with the "alternative control > structures", e.g.: > > > quantity > 1 ): ?>

description; ?>

endif; ?> > > > I couldn't find any discussions for a few years, though, so it's possible > opinions have changed. > > Regards, > -- > Rowan Collins > [IMSoP] > --0000000000003733e90584ed9702--