Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108265 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 97416 invoked from network); 27 Jan 2020 13:15:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Jan 2020 13:15:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8D2261801FD for ; Mon, 27 Jan 2020 03:25:11 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 27 Jan 2020 03:25:11 -0800 (PST) Received: by mail-lf1-f41.google.com with SMTP id c23so5937906lfi.7 for ; Mon, 27 Jan 2020 03:25:10 -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; bh=Zr18cnd+2rxFrofZ2WBOdZZzKrbVs8DIdQFKwZDcLqI=; b=QkSiZJDg9+wkYkdpLkfNGF3Bp9hukGadqmF/ITMTojg+MEXMG+Z6r+MwQqNX4MU1m1 3E+cLlsv/sMcxlsqW/zZRIUnt4kPdRJ2Wu6plvcH7q7QXeAAzVV139HtvpYZ7TdlRu8+ XCAdxKMvESohoBBctHMxpO9x5F/MyITer5eySpYLqIN/d1ib4M4dNorjvgK9SEvYVWhg z9iWbqVAkeFNYuuk7PdBqWyJ7w3WhHkURGiOb9akfB3zr3BQl0uhX2QKKUnsKsL8PgqZ 1rzipyda3B2uFlgg0MGnhNRfiziaBr05aGzIPctTnQl4pFa0s6AwZrA6eZnpkG4G/hP4 CRug== 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; bh=Zr18cnd+2rxFrofZ2WBOdZZzKrbVs8DIdQFKwZDcLqI=; b=S/QnTUY4Cv7fvhs6nYZ9Xo+WaRFtZGhug6EzCnAgjf3aEmlqXU7WFba/MtFR73/dpU Ub8VKxbWXQI3R9Pq+y9l9P1pjoKisHFnFKn/Nr6NTJ6PNPjESOfOBzmcGwJJ/+2bg2zD 65uNxSqfOQWByNrXMr1r5eCaKCbtqKrnoOqvu5eexSQWfUk4QA5GvW0ZCFByqv4X3p5N 1QgibhdU12BWdW7LEY15pbV0dalglDIGdQYJdb4nho9kvh06QTNSmNG5ZhZ3ys94RTeO MW5VtydBHxbVbNgaDXLYn3DPPC1pz1wNw8I/zYgtP4u/AQjsWu7+QCVIbYMTuBdEYXdU i43g== X-Gm-Message-State: APjAAAWuZc5qguUf7sDL8UGYbta36ur7Z3v13Wt9H1c6SHGF11X9maaD jN6GLAAAHMutcAwk0hvsyJ0JRivuL1lTsORF0R2bvi9E X-Google-Smtp-Source: APXvYqx0mJWScla804CSxvqkPtUvpMBUAqEvR2OkWHQgCDaREe/CCPKhL2I9QeWuUmpjI7Kw8A8xoTKbUYBADm2cXt4= X-Received: by 2002:ac2:43af:: with SMTP id t15mr8157984lfl.154.1580124307818; Mon, 27 Jan 2020 03:25:07 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 27 Jan 2020 12:24:51 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000118c4f059d1d5c53" Subject: Re: [RFC] Static return type From: nikita.ppv@gmail.com (Nikita Popov) --000000000000118c4f059d1d5c53 Content-Type: text/plain; charset="UTF-8" On Wed, Jan 8, 2020 at 12:42 PM Nikita Popov wrote: > Hi internals, > > I would like to propose the following RFC, which allows using "static" as > a return type: > > https://wiki.php.net/rfc/static_return_type > > While I'm personally not a fan of late static binding, we do support it > and people do use it quite heavily, so I think we should also support it in > return types. > > Regards, > Nikita > Heads up: I plan to start voting on this RFC tomorrow. I think most of the discussion here has been around the "$this" type mentioned in future scope, but no particular concerns with "static" itself have been raised. (I don't plan to include $this as part of this RFC.) Regards, Nikita --000000000000118c4f059d1d5c53--