Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123847 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 5FAA91A009C for ; Tue, 25 Jun 2024 21:47:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719352136; bh=XBVIY4F0vsAfDot6cPEFXPFIgk/1KAmiIXmFf531qcE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cp+jHM9JoX0Xgz2opHMGuj/GA93aY5JTe01f5TdPC59gGM1WKglRhkVnXkPRLyTKm 92vhTGVngBm0fjCx1q8OCfBUVGDi9EQo1saqMT2NNIIm+ABPyToLcuoYP27g67k04l J+vzHfKSW9ZNxUQpChXyMmeUZuSTQ6NP708mrpF2AimjsIuHjxOb5xaVV4aQlHat9A ALkX9aryRuC9Gf7DWUEObPzJrK+bQykm3LCLN4MezGhfbv00fG3iacke60gLSCdHMB QnRAbKxXx475inWYKpMzFBuNBh13pYCUhpmjbMyKP4Q4y7edikf+/D2mH22wQqMaIO mUvqb41aUniwA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7A3A318057E for ; Tue, 25 Jun 2024 21:48:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 25 Jun 2024 21:48:55 +0000 (UTC) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-70677422857so2024968b3a.2 for ; Tue, 25 Jun 2024 14:47:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719352057; x=1719956857; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/4nIlDa0fdpOF/6UIRjrxGGhKekBPig7EUA+tSDqV0c=; b=h4QT+sA9Qza/UXVln0ugT3ffeCvPR5GE3us2aZLMEkqmD2PD3ZjqUXmwoq+k0Tu5ti uaJNfbk/nIC7qsq6GfJYX95a0x6Dusr+SuZxa5kDtb1RC6sug7PUlN2mN5qY189euI3W FKri2E3U4s1jYpwz2ofXRO88o6xXCZvrJSqVtVO+MA10F8PQVcHuMb8fi2sZDQIFCxkA Nm98Qt8QsGQ6fdlHNYeljgfvw0LyuAm1QX8FHYtiOHq0RZRvoKkmHg9eN5blsw+GLRIP 9KkmmeoZ1wk5+7ATc/RgF6DaqMZiPW0++sEZkVvO48fjfodZZ4C/PngQ9GWTCaOqIZZb FIHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719352057; x=1719956857; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/4nIlDa0fdpOF/6UIRjrxGGhKekBPig7EUA+tSDqV0c=; b=YY28R6i+ZuFKXtWY4FIkFwl0HHFSdo3murDQKvqANTvHZFepdPvP4yaJ15wI4Z6iqO sBbhAlw1tdbh5t+YH7FlXAOT2MHNvMTETgHDHSbhSS9piWZtgsPgO54SXrioGwomyrNM 82S51V8DgViuTClAjmyScHwc3StT7YTQ964xGa8Oq34YfsccQicXN8xlMj8M1IqyEgq/ UmfDwp7RW+ipaYJRWkk7SU4/pjUisL2/0Ftwiy0DnvltgSJqR9om4PBGRTWW8675NYlj WjejzQEJhUJdxLCicKWDNkmVF8KwN/03B/rmOJo6bLCqBx9U/CEowLQ7sJS1OS4XpKKj GONQ== X-Gm-Message-State: AOJu0YwuhcTPgQNWpeSw17SSRRFYmyY3w2PGemrfekLUJQDshNDC1uR/ Q+pF7QhG3cwo1w2j29d/A4lRhWmkbXQhLJ/+5/rmdCXNUbJPwjQ3An84wvyFS5t/dmZzO5poDUF jzFa2W3ljr1yNboVV7Gc3JGxX7kUyQ7flWIg= X-Google-Smtp-Source: AGHT+IFyYoLaUR147tquG0PZX4mINI3+rmiTstd+6Esza2dWSkBVF4/SnBWk9RwnmKEYGT5yT5UC+3Byi/xOGwE1CPE= X-Received: by 2002:a05:6a20:7a1d:b0:1bd:1a06:7ef3 with SMTP id adf61e73a8af0-1bd1a068015mr3003186637.3.1719352056612; Tue, 25 Jun 2024 14:47:36 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <667B35B7.4070902@adviesenzo.nl> In-Reply-To: <667B35B7.4070902@adviesenzo.nl> Date: Tue, 25 Jun 2024 23:47:24 +0200 Message-ID: Subject: Re: [PHP-DEV] Add $this return type To: Juliette Reinders Folmer Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000941093061bbdd8dc" From: ocramius@gmail.com (Marco Pivetta) --000000000000941093061bbdd8dc Content-Type: text/plain; charset="UTF-8" On Tue, 25 Jun 2024 at 23:25, Juliette Reinders Folmer < php-internals_nospam@adviesenzo.nl> wrote: > Also don't really see the need as there is the `static` return type > already. > I'd see it as useful if the type conveyed identity too, although it also means that I would never use it, since I design immutable APIs, when possible :D Marco Pivetta https://mastodon.social/@ocramius https://ocramius.github.io/ --000000000000941093061bbdd8dc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, 25 Jun 2024 at 23:25, Juliette Reinde= rs Folmer <php-int= ernals_nospam@adviesenzo.nl> wrote:
=20 =20 =20
Also don't really see the need as there is the `static` return type already.

I'd see it as us= eful if the type conveyed identity too, although it also means that I would= never use it, since I design immutable APIs, when possible :D

=C2=A0
--000000000000941093061bbdd8dc--