Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94767 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69575 invoked from network); 31 Jul 2016 14:55:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2016 14:55:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.44 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.44 mail-wm0-f44.google.com Received: from [74.125.82.44] ([74.125.82.44:36723] helo=mail-wm0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/C9-22978-B511E975 for ; Sun, 31 Jul 2016 10:55:24 -0400 Received: by mail-wm0-f44.google.com with SMTP id q128so341785543wma.1 for ; Sun, 31 Jul 2016 07:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=R0bYaFP5nAGZpfUCOc0PCAkU16rNDn6gDHwLl5Vt/zk=; b=pbFbFrq558EFp86+XwZedfjrDtP+X0TXs2YN8XLIeVkX+/m12q7SaJmViRFZUVIylc xa8TvBvuNDKU9MfIZJqJxswvnQJT68HOZS0FyjltKblYKEiscprDbK7yYZoPqLMR7Xy7 AdEfCKUNM4O1qsZSEL6SK7H1qYZA6Adycv5/ksqloLx+b4fvXPpcPdnqwp3UDSSZJzLx zvFSdSiuKCRUWsqMYtjIZ3TnNjK56Zwd8/biOiAl04FbD0F8IUQmqgX6K2z7xpckSWJM enBty4oJnGtu5akYo561lggoXV7bDUhWxHH61Qp70pM+YXyFslW4hHl1AaDBC0OuVplg u0rA== 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:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=R0bYaFP5nAGZpfUCOc0PCAkU16rNDn6gDHwLl5Vt/zk=; b=JgPi7GOqQVWA5mBVmoQvixBSJ4HdNtgiU4QBX+hCWhbqBQqIJwmWI28NPQPcrDAwid fcqe/sW252u++wiyhqX4m1pEM3M4zCLKNoNph4xsU1pNDHfcZ8Vlh9WCEZmE8VYNQRyb UwQv8FqbfjECb3xvu5y2Ik4EDSs1mQDbomHywLGKmY/tH0Tmd5qHHzYyItPpJTVYj6fP WU3R2jPVhQllIhDwlkEH1x3x7Yt5aoyEK1bsU8NY5Ys0W5I/3hD2e8NgWeEYHagVeaBa TCVR8P+3JsMtY7VmwHbYW7+UO3Ckka01adAVXunUNQlfKGnRN754WO93gwKDGqEPMthr YVHQ== X-Gm-Message-State: AEkoouuJGBuWCAI5Xx7snj4i34Z7wsagLM+jLNyKOpRi4cgEiuHIB8SE4vCc5imeWC37qA== X-Received: by 10.194.81.137 with SMTP id a9mr47117752wjy.106.1469976920124; Sun, 31 Jul 2016 07:55:20 -0700 (PDT) Received: from [192.168.1.5] ([95.148.161.240]) by smtp.googlemail.com with ESMTPSA id e65sm12527700wmg.3.2016.07.31.07.55.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Jul 2016 07:55:19 -0700 (PDT) To: internals@lists.php.net References: Message-ID: <1cc7704c-1480-e67e-908b-00d2f6a73150@gmail.com> Date: Sun, 31 Jul 2016 15:55:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Structured Object Notation From: rowan.collins@gmail.com (Rowan Collins) On 31/07/2016 15:37, Dan Ackroyd wrote: > All PHP programs start in procedural code, and then require some > bootstrapping before we can enter the lovely world of OO code. I think it goes deeper than that: the procedural code is not just outside the objects, it's inside them too. The body of every method is a procedural list of statements and control structures. If you have a single "if" or "foreach" in your code, that's procedural code; if you have a method with more than one statement, that's procedural code. It's possible to have a "pure OO" language - take a look at Self or Smalltalk, where even "if" is a method call; or there's functional programming, where you try to "compose" actions, rather than declaring a sequence of them. But PHP, like Java, Ruby, Python, etc, etc, is at heart a language where you say "do this, then do that"; changing that isn't a minor enhancement to the language, it's a completely different approach to program structure. If the problem Midori is trying to solve is to do with bootstrapping, or dependency management, then I agree that a framework of some sort is the way to go. The boring glue code is all still there, but you don't need to look at it; ultimately, that's all a language feature could do anyway. Regards, -- Rowan Collins [IMSoP]