Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114629 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35418 invoked from network); 26 May 2021 23:33:15 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 May 2021 23:33:15 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C2A4D1804CC for ; Wed, 26 May 2021 16:44:52 -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, 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-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (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 16:44:52 -0700 (PDT) Received: by mail-qk1-f178.google.com with SMTP id 82so2917185qki.8 for ; Wed, 26 May 2021 16:44:52 -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=gtRAvZ8ynRf02hBYBGh8iY3fNWFBRJ3+nH4VtL/dA9A=; b=Ar/BiluZtJvNBvlsmFbnJeglTIz8g6VhrFgTy2Im4JjxkjcA6YRlaiAlqqfvzpZzCM 1rSfiSlBZ+rGZ8ltAiv9JQKbTotzyIYrHZpgRElv0gyQ2DnT6YbWpuR1VB2BkELI3DfV i6JlIxkhX3WyN8DTvgdzq8vKmWigQYwZOT0hltVJlZ34+MrhU3zDpKmclyT8PYysV1sq g6Kzwabl4UK5E8vcXANJsWR9MX9Bv6qBLBnsZMPhANUOwdjhrk2B8Q4DMm6DbkEJIn4k cLb6I4g9wM5HtgRDUopNjlWaiJnsm1Xg/Wg72DYx+Gji0KAHqKQnbW0jEtMVHHQo3KBH T7CQ== 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=gtRAvZ8ynRf02hBYBGh8iY3fNWFBRJ3+nH4VtL/dA9A=; b=b7DkqYMKWj2PgriQtqXAMDphF41N9mDibkEnILTuYCW44TCWkzC3AbfNPVGmv/+KCE tKkoUmjjSL3YSOJqS4h72BZ2ir01phlybu2jG2tYdofoDG5c6doZjXKHjCnXRYi2n3pz VlTI4lE7xlDXr+GOaGyetwAl3yQeECHB53DwuvOElbJsCkVXU7M7ib2sdaEaYV1PYZfE Yqvgl3VpLC+b3W0mg+hiZSAFIW49dbf8OEq7Rj38h/UlXVIxr5Bz1s6Snqax0O7u5MH+ Ywu3J8IBA6lX9ipxv3BF2Cm8H1KkGU8gX9IOf58OJl0/MmSgvx9TGw+UgAOyHPbp1x+m 3LGQ== X-Gm-Message-State: AOAM532/KBkpfb1PVSnVgTiLxSMigsssTnu8hQHyWccTX85S7ewmfKko 3poYtLi6OWvK+nBsmxJLz0qHgCGxNCc1aiA6kw0= X-Google-Smtp-Source: ABdhPJyCME/DQQAuzuPqjdKkvhs23TB0pQyioN5MzXtMLOLIMbTe4CZ/ZRgLy7+ZbcJDMLKb9SrwoEni3F+MnwYBQg4= X-Received: by 2002:a05:620a:1442:: with SMTP id i2mr639914qkl.45.1622072691065; Wed, 26 May 2021 16:44:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 27 May 2021 06:44:40 +0700 Message-ID: To: Mike Schinkel Cc: =?UTF-8?Q?Iv=C3=A1n_Arias?= , "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] A little syntactic sugar on array_* function calls? From: the.liquid.metal@gmail.com (Hendra Gunawan) Hello. > > 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). > If it is solved, this is a great accomplishment for PHP. But I think scalar object is not going anywhere in the near future. If you are not convinced, please take a look https://github.com/nikic/scalar_objects/issues/20#issuecomment-569520181. This makes me have a strong feeling about pipe operator greater than before to solve object-style for scalar issue. I hope that someone will take an initiative to fix the old inconsistent and confusing API. Pipe operator+new API is a better solution than no solution at all.