Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94763 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61910 invoked from network); 31 Jul 2016 14:00:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2016 14:00:17 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-wm0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:35788] helo=mail-wm0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/48-22978-0640E975 for ; Sun, 31 Jul 2016 10:00:03 -0400 Received: by mail-wm0-f42.google.com with SMTP id f65so340868605wmi.0 for ; Sun, 31 Jul 2016 07:00:00 -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=LJHotkRbhQaMZ0GAZU8L9SqpiuECeiiArfhV2G1k854=; b=sJ8S+6WlmA4QI6eV7UTLKiXn3Xy+AuVvpNkxzbZCjrO1E/Qlkq+G8dGogudctJ9teG kklP6lSiXmgCnQyx1v5OGqlUyvSrFYyQFOP2EfyUbDnAh8omcKvwNhE61bZ30ufMU14n 13uLisfc0TjIyXKo+uT3Sc1ET+jXlUuGsVTepE27VmvESO1ZjulsoU+hlFZ8iDWj7AFX +bHgvUkH6KyJBUhCmX59fCQluSWw4cb5ZoPiHZaySuU7jnZylKXBrv4OjY76NZFQobmK oNzXXC5whc4ePIgYr7VIO37FFLjS/EiNE7rQ69q/IxFDWcKB/Sh8aJciptLQfaXY6vsO fx9Q== 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=LJHotkRbhQaMZ0GAZU8L9SqpiuECeiiArfhV2G1k854=; b=M5Dfg14StBe9TdTL7md6RJXaQcbkbKNolnoo3TdFW2WgkMDq1MMpw+SwUi663+Rm42 pTsunuQSirx1ixfpljH6dNM8h4ftvoj++ANr2BHT7/nibCM24OX8JJEYugyZhhHF7Fd1 LlgOvaTt2WflyRK4/wwY0b3d7KoktndK/DhXXD1qOX1Pf6IPIpwpEANlYEMzdoAQepJP JsF/FNLc8jJTVB4dHD22/h2Oog7YU5pFEia1K8nKII4+jnxv3YTZtSBxSaHX8cBX9GST e6RER5TRHUfC74n1C+pm60TjeHe9+Jxq3Qk1XPRgWAz946Zb0AmgKBWHIlUlXWVScxkc /xSA== X-Gm-Message-State: AEkoouseU3v/1Tif3MZgW/AY/EJhk4ex2L7JgnYNxV6AsEM7d6IabCcOeD1Lsll4GfWYnQ== X-Received: by 10.194.178.102 with SMTP id cx6mr46751938wjc.58.1469973597534; Sun, 31 Jul 2016 06:59:57 -0700 (PDT) Received: from [192.168.1.5] ([95.148.161.240]) by smtp.googlemail.com with ESMTPSA id r16sm12275549wme.16.2016.07.31.06.59.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Jul 2016 06:59:56 -0700 (PDT) To: internals@lists.php.net References: Message-ID: <642c8013-80ee-4449-799a-878ccee11152@gmail.com> Date: Sun, 31 Jul 2016 14:59:54 +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: 8bit Subject: Re: [PHP-DEV] [RFC] Structured Object Notation From: rowan.collins@gmail.com (Rowan Collins) On 31/07/2016 10:00, Midori Koçak wrote: > https://wiki.php.net/rfc/structured_object_notation > > Object Oriented Programming is a key feature to write structured programs > in PHP. However, even though we have classes included in our program, the > only way to create an object from a class, is to instantiate it in > unstructured code. Hi Midori, I'm not really sure what problem you're trying to solve here, or what exactly you're proposing. The RFC would benefit greatly from a succinct summary of the actual feature, as well as the examples. Are you looking for a way to set pre-requisites, like "you can only call bar() if you've already called foo()"? But then why are these on each instance, not part of the class? Or are you trying to declare the order of all operations in your program as some kind of directed graph? How would that work with multiple objects interacting, or with structures like conditionals and loops? There may be an interesting concept buried here somewhere, but I would echo Richard's suggestion of finding something similar in another language, or perhaps some related computer science theory, to give more depth to the idea. Regards, -- Rowan Collins [IMSoP]