Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114615 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76901 invoked from network); 26 May 2021 11:39:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 May 2021 11:39:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 80F661804B5 for ; Wed, 26 May 2021 04:51:19 -0700 (PDT) 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,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) (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 ; Wed, 26 May 2021 04:51:19 -0700 (PDT) Received: by mail-io1-f44.google.com with SMTP id k22so641118ioa.9 for ; Wed, 26 May 2021 04:51:19 -0700 (PDT) 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=DCxAm2cWy/RYfpStb7XHAVpSl6kkUiAkbmmOLBnhdTs=; b=VZmYRfEptFI0/w52/+mmQxDmXilJzaChmPZqOAsRp37hfZLTYk8tl3gkcnw5bdV2jR qPmCszueJVNjgOfVgEBr6QeQOjus05KrHzH2OS2wkKHZ6x8+7NauM/ZNdTKAvOhH7q3/ XrJKqJ1n3CZE9wAcaCNfC9aSLKv6LrDV+xEAaUeT+vexsVSlgwkeyErspA7cGZpwJjAr zvT9kov+3yzlMkY5wAF9JUDssbhpsSMX7GcMQjYQj7/nkZhdeeRFQJzC/IKQyBrCrUrl uw1ujV3YqZIw+efktICTrIyb8+QyQQnbdD89szw4KV6eGj5ixdKrBt3CR2s28usQFIpt c0Qg== 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=DCxAm2cWy/RYfpStb7XHAVpSl6kkUiAkbmmOLBnhdTs=; b=lrLscJ+TdAw00B5ca34VF8XNafOH1uWfyqI0mSY1MXEp+kEg1duP+SFoMq0u8qu5g7 QyVxlmqAwWGgal1LjkA6GLhyzUZIBRcdHBm62Y7uYPxjb+gahoSI8S2w+c0PZFm66PGN fw9N7E1SB1MBDlQtqzOcovnAobBUi+aDIZyfPxvniBcz8n3f/3+J3sea1OP3l4ki3P2m OZlJat1jHtD3lQ521CCR0KKDDk93js9Fk/zq3s39W2qKzznE2R3/uPvq5rscFKlnl7nG iMNT205WbrwOp7UcZvbGijX8xdR+Mdsi/GJqc42ZHgvyRUbqql2NEEBFSjzdqgwzgn1b 6EbA== X-Gm-Message-State: AOAM530xJBa4aM2qMUiReqeb02vFFoEfpu/z/4pUI5AM8jdqfm9zgOwU yTWYqfvK6/X6mBcecxe76NDk5sxIu77Ymd5pNuJunE/1Qskdqw== X-Google-Smtp-Source: ABdhPJzHZE5pzyaUjBYCs7w3wANdmgB8SdEOEK8byBuYT4kKQp5iflhJazU3gcmH0pmzS9RsZ3S5TL6VS+8HzU9hgoM= X-Received: by 2002:a5d:9842:: with SMTP id p2mr24060639ios.132.1622029877687; Wed, 26 May 2021 04:51:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 26 May 2021 13:51:06 +0200 Message-ID: To: Mike Schinkel Cc: =?UTF-8?Q?Iv=C3=A1n_Arias?= , "internals@lists.php.net" Content-Type: multipart/alternative; boundary="000000000000acbabb05c33a4212" Subject: Re: [PHP-DEV] A little syntactic sugar on array_* function calls? From: ocramius@gmail.com (Marco Pivetta) --000000000000acbabb05c33a4212 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 26, 2021 at 1:03 PM Mike Schinkel wrote: > > > > On May 25, 2021, at 6:28 PM, Iv=C3=A1n Arias wr= ote: > > > > Hi all, > > > > It sounds like scalar objects by Nikita: > https://github.com/nikic/scalar_objects > > Yes, but Nikita wrote this note about technical limitations at the bottom > of the repo README: > > Due to technical limitations, it is not possible to create mutable APIs > for primitive types. Modifying $self within the methods is not possible (= or > rather, will have no effect, as you'd just be changing a copy). > Sounds like a big **advantage**? Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --000000000000acbabb05c33a4212--