Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103849 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 33655 invoked from network); 25 Jan 2019 19:58:43 -0000 Received: from unknown (HELO mail-it1-f171.google.com) (209.85.166.171) by pb1.pair.com with SMTP; 25 Jan 2019 19:58:43 -0000 Received: by mail-it1-f171.google.com with SMTP id w18so11413025ite.1 for ; Fri, 25 Jan 2019 08:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kvj+cWEv17nyUd7+B5+qeMYd0SrZwhFOD6xEF8L1ec8=; b=IhOlNWIDMnOM+mu3KaYLu26LUrEM9iZBIvKAA9WFVBEB+gd8OEnjpCOVgq2SVEpU1t n9mJhUxkn1IHHsZz4Gh0uA2K3Lfte46MyXWcFCtLlol39IyJNn4QKbBRMXg8ax98EZZ0 HkvevnvetbqDl2WN868uB+EWHYcEdNUjY9AKtLP6QEeUqL/jC1tvZz/mbhaneRYudd0D fVI5ixyvUE4tBYRQjrSAMmfjCfVZtxw8qGNbZRFovvpRgbOOMMwBTRUJxsJB3y4vawxr LYn/EoS2aIyYuYHIupaWd2PyC4n23m+TFbN7eRzgDN5K1iBqwS8t9zpqwu6VhlGMwH7c cCTA== 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=kvj+cWEv17nyUd7+B5+qeMYd0SrZwhFOD6xEF8L1ec8=; b=QIoqh0XYXLPastgOQDRihBcYqZLrXGGNCyqi/q229AGwm4FRCx61l1CXZ1bvAtZowc IIpfEEfpRXLOB1KtUjgWyk+JS7M9ULSZFKrF8A82O/Ps/Tk67/AGqfH0m+q81n+lA3my 2cwHY6e62gWktBVPmfTqXWaP1KT6FYbZeivJyETV3gYGhFFAL8Y0pjgbCrFfS95+uu3g Q1bq+4YEBdlVCfC6MYpR1RC3ysCOvXswHARf9O06FuytRUXqWmqC9HCEMWSgqMbSqiQd G9PvAL+ToDE7hUmmOZaajsFqFe4Ht0MmFgR0kWKdC0MuzUgisMI+8PxUGhdxiJIznCt0 8UHw== X-Gm-Message-State: AJcUukeuGqQMGR1UX2/kuZatHGcJJ1IwrJSN0dKWN3xLRKJdvDIaq3lt xMSnAoiYxgd0pmJ0kba6ds3X23WuWmCFD6C8fvo= X-Google-Smtp-Source: ALg8bN41vuawZPjDKOlt2vbI4CP59Dc2a42sepyukwedMQ48zJhsV+sxOj8puvgw2jbk8OqHhGv7yNjHcSSi4/lDvQQ= X-Received: by 2002:a24:32c5:: with SMTP id j188mr4514811ita.139.1548434228438; Fri, 25 Jan 2019 08:37:08 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 25 Jan 2019 16:36:57 +0000 Message-ID: To: Levi Morrison Cc: Nikita Popov , Andrey O Gromov , PHP internals Content-Type: multipart/alternative; boundary="00000000000024eb1005804af083" Subject: Re: [PHP-DEV] Proposal fo "Code-free constructors declaration" From: rowan.collins@gmail.com (Rowan Collins) --00000000000024eb1005804af083 Content-Type: text/plain; charset="UTF-8" On Fri, 25 Jan 2019 at 15:37, Levi Morrison wrote: > > If you have any more complex of a need (such as private variables) > then I think you should write the constructor. The reason is that if > you have private variables, you need to establish a public API > contract. > Right, which is why I think this is solving a different problem. The OP was proposing a syntax that would allow you to simplify cases like "call parent constructor with this constant, then set these 3 properties"; a call-time syntax like this is no use for that. Regards, -- Rowan Collins [IMSoP] --00000000000024eb1005804af083--