Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124799 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 61BFD1A00B7 for ; Tue, 6 Aug 2024 09:16:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722935868; bh=EPoAuoc4NCLMi7hhysr6gLjEtawpcKStp4ZqcDF74hk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KUKzhcCKaZXx/74LZAoicgNqzZEBozHkWQf2CIB33BRNAiLcepnsd0VlOpuKxX0K4 Gx7d0ISUGn3JH+/4EI4oyyU3WXvyY+ANblUyv8Gx/Im8bowItpz7KCoe85DK8CmZND KMwuhwqgKwfZG00uNtLBYYLRpqxrsHekYrZJNaEiElVTZU3mlSe2PdGZFbQ3SF8Uvk nRmXBWlqga91/Ds7r7gU8Et77KpUkGvF+CNLmVkiqKHnpPp6ealsbqZ0LMSq1bS1pF g1FG/Cs+7tpUzI8jRgZU0BHpXJBBT/kooyN/cjL3X6673Q3XIop73Hu/tjIWJVfL8T EhK/+OKu5AmCw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E7CE8180051 for ; Tue, 6 Aug 2024 09:17:44 +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 autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (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, 6 Aug 2024 09:17:44 +0000 (UTC) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-7104f939aaaso326559b3a.1 for ; Tue, 06 Aug 2024 02:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722935762; x=1723540562; 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=BiXZYf1tWgYUIaOhB0tWx8VbI7LFVQlpXkynmzMTYNg=; b=igPq53Dl7FHVxhnWO1Vus7k68ptMzixz18Zn8MGyN9DfelAJUE5sJuSj752p8MDF5c ZQhUtkyue0YgcSq/1RQ3jR97jK54AAyL3R9SWroAAiPZ+3Ybt+xjqGfXaQQNoPuPKNA3 /E7EUXC++yLJJmHs/dx6IhbRVB54pSFLgH+wyEzw+5Tpv1UxPVpPNEU7PAcY4k+rslYV TIA8ShYmzaNBzRBYJW5oKI8j5M6czwOe0F1Np3PYVOgeB8UwP1ExKH+LOMd4IcYR8pBl 1Pxbm2YMrcbHXN7c1Zk1pkBzNdEUiLoqez62wdZAwAyp57O+WJegEeQVHTNbKBdyjqWh xZSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722935762; x=1723540562; 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=BiXZYf1tWgYUIaOhB0tWx8VbI7LFVQlpXkynmzMTYNg=; b=AwnwMjmZ46d5aIq29URr1SG6R6RrkTeAdx620Do08dO5ABYDq2MU+XOLKMECXv4OPM ixWykfPjG2+8jH65KhLmL+eccUMNX5JzeP8/2XA9RbB4AJF4a97DLqN6jOJ6Y84nePoX sEdeC9OPb8Fon4scc4y7fkaSgiFGsIVnaa/MZRs/Mo48QSFZCtnnayKXvcZkcGziTi+H dAZAiykBLFjpNg+jiXjrjsL6xc8ByoB0Pk73MGlSmptcqOpsX+j7oZnZI2kNhlPIwgPJ xVRLmk199X9gXHR/fBi3BKOrjsaIf1bo/hQ0O1zYvMv7ziWcUMr7DWSRCK/PqvWpjUhb L5+A== X-Gm-Message-State: AOJu0YwShX/23JTkghRYJnKYDtznBfjAxTDB23LJWsacGwUeb7rAIIA9 5FMRa9aqmUKvtKVrt1D9Rip3jqqo9273D8+MaLsyCvQ9U6HtSQwNeX7UsjtFsIklOOXlhZJ6ntp 1LcQe7Ve7UUL9ZA+yiHMR1c4kRnQ= X-Google-Smtp-Source: AGHT+IF09NXxA3SNhuJ0jVntJWdJX5tJXWmORti1CNQ2Fn2qAn2h0k/fneOQYM4m1BcxqBAxvDJtUvNiFS6LmK/i85k= X-Received: by 2002:a05:6a20:7346:b0:1c4:986a:de71 with SMTP id adf61e73a8af0-1c69960e1a1mr15929200637.35.1722935761699; Tue, 06 Aug 2024 02:16:01 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <4584782.LvFx2qVVIh@come-prox15amd> In-Reply-To: <4584782.LvFx2qVVIh@come-prox15amd> Date: Tue, 6 Aug 2024 11:15:49 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] Lazy Objects To: =?UTF-8?Q?C=C3=B4me_Chilliet?= Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000000c0d3e061f003e2e" From: ocramius@gmail.com (Marco Pivetta) --0000000000000c0d3e061f003e2e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey C=C3=B4me, On Tue, 6 Aug 2024 at 11:05, C=C3=B4me Chilliet wrote: > > What does Proxy allows that Ghost do not? > Ghosts work well when you need to use the object identity, such as: * `$a =3D=3D=3D $b` checks * `spl_object_id(...)` * `SplObjectStorage` Ghost objects operate at property level, and can only ever work with concrete classes. IMO, proxies can operate also at interface level (probably future scope), and could be expanded to not need a concrete implementation until the initialization callback is reached. Marco Pivetta https://mastodon.social/@ocramius https://ocramius.github.io/ --0000000000000c0d3e061f003e2e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey C=C3=B4me,

On Tue, 6 Aug 2024 at 11:05= , C=C3=B4me Chilliet <come@chilliet.= eu> wrote:
Marco Pivetta

https://mastodon.social/@ocramius

<= a href=3D"https://ocramius.github.io/" target=3D"_blank">https://ocramius.g= ithub.io/
=C2=A0 --0000000000000c0d3e061f003e2e--