Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92512 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65676 invoked from network); 19 Apr 2016 23:39:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Apr 2016 23:39:44 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.170 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.170 mail-pf0-f170.google.com Received: from [209.85.192.170] ([209.85.192.170:35957] helo=mail-pf0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/EE-22821-0C1C6175 for ; Tue, 19 Apr 2016 19:39:44 -0400 Received: by mail-pf0-f170.google.com with SMTP id e128so11423170pfe.3 for ; Tue, 19 Apr 2016 16:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=h7jGARj0Hun+x+pvQasa9nVVBeo2OlKJvRxZrbm8lnI=; b=hvaRUC/h3itXxKn6JcmsYLCUQuKfVVj5LS1X9Z1h8Pb7z93Sm+CFQZwUaxMgeR+wMI HBbbphGdG87fCz3muIuXNZDuh7ceo9Fo5l57NnvLakqutp7zs+Vg/M9CJYy7yoyw8d0u BhTZHNUFW+rUMX4g+5FaPAJUeagtBVQU8MdcJoOnzLyxLxK3E7Zx+f8rq/dLPXmhLzXm 35ZLx/O+ydGMeykKS18RDZMYLhmEJy/rVZzZMLlkbhsxbRkUGi9bbdaYidnBoQCTvz4+ /fx9C1jHD5ROHTiDL/xKs252chNLiRY1lEUBmQKrYsDXqkiFahixFZspBIeegZEnF/OF jnLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=h7jGARj0Hun+x+pvQasa9nVVBeo2OlKJvRxZrbm8lnI=; b=DqaeHISw2wgmh1T5izEySrHlg7xyAwuSkf0/dYDBIG9jlwEDY7iGBhGWVePnLwAU9M XFyVObeUHxaHrikVAvVvPuyVex2c8U5UyWLu8dtiZOpzllYgF2SPlpbwNL/eefvABG5p Vi10xpr192PaE/tA+RGxcxIDxuXQ7oPglqTIjg+0WV3JJ4ltzEwHA5gGcSuwBgM1j8mA CPnHWkJYHBFrf97TtAOsscxR23tnLUdtESy4JForfkXl/saziJhUHOGhKp6z3X6rFnjo KoKnAxEKG95Y8h7sup4TwvO2OLwqMn8SPHmYcFUUPBqbASr2NJrSRpGvnwTg9/hyl7qP 0Qug== X-Gm-Message-State: AOPr4FW8gDH6wBqdtvH8HmdG/O/om4jfJkRaxqqId2gRUtTDrN7WOn1lj2bMIwNrPdvKrA== X-Received: by 10.98.78.205 with SMTP id c196mr7809636pfb.129.1461109181659; Tue, 19 Apr 2016 16:39:41 -0700 (PDT) Received: from Stas-Air.local (76-220-46-95.lightspeed.sntcca.sbcglobal.net. [76.220.46.95]) by smtp.gmail.com with ESMTPSA id n74sm93348976pfa.45.2016.04.19.16.39.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Apr 2016 16:39:40 -0700 (PDT) To: Marco Pivetta , Ronald Chmara References: <6F.C3.12455.94C5F075@pb1.pair.com> <20160414094440.GF19347@phcomp.co.uk> <570FD94F.90703@fleshgrinder.com> <570FE8A9.4020809@gmail.com> <20.53.29891.17401175@pb1.pair.com> <57110BCD.5030009@garfieldtech.com> <571124C2.9040606@gmx.de> <57112F31.8070209@garfieldtech.com> <57167C35.8080601@gmail.com> <57168FCC.7000507@garfieldtech.com> Cc: Zeev Suraski , Levi Morrison , "internals@lists.php.net" Message-ID: <5716C1B7.9040001@gmail.com> Date: Tue, 19 Apr 2016 16:39:35 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Improving PHP's type system From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > So the Symfony2 routing and Doctrine ORM are academic proof of concepts? I'm sorry I'm a bit lost about how you got from "prioritizing 'interesting playground' is more suited for academic PoC than for a mature language" to "Doctrine ORM is an academic PoC". I have little knowledge on what Doctrine ORM implementation is, but I'm pretty sure deep technical details of Doctrine ORM should not be primary driver in designing PHP's type system. There's a lot of ways to write ORM, and I'm sure Doctrine developers are smart enough to do what is necessary. If there's some generic lesson they can give us that would serve everybody - let's hear it then. > We got to the point of inventing language features by building hacks around > the engine (Levi and I had a heated discussion about it) due to practical > necessity, not due to technical/academic onanism. I appreciate that your specific use case requires certain things. I even think there is a good concept for these things, if I understand them right - namely, annotations - and those are used in many other environments (see? I'm not afraid to quote other languages where it is appropriate! ;) What I am questioning is that wiring those things into PHP type system is the right move. > Removing the hacks and replacing them with actual language features would > be the way to go here, but let's just keep assuming that wordpress is the > baseline for good software in 2016. I have little idea what you referring to here, but I assume you think wordpress is actually bad software, though I am still a bit lost as to how it connects to the rest of the discussion. There are a lot of additions that may improve PHP in many practical ways. I just think right now there's a bit too much focus on adding new syntax that adds much more complexity than it's worth. I'm not against adding new syntax per se, I guess I just want more necessary capabilities enabled per complexity added ratio. -- Stas Malyshev smalyshev@gmail.com