Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121395 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59226 invoked from network); 18 Oct 2023 13:42:47 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Oct 2023 13:42:47 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6CBE11804BC for ; Wed, 18 Oct 2023 06:42:47 -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, T_SCC_BODY_TEXT_LINE 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-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 18 Oct 2023 06:42:47 -0700 (PDT) Received: by mail-vs1-f49.google.com with SMTP id ada2fe7eead31-457ccaf102aso385954137.1 for ; Wed, 18 Oct 2023 06:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697636566; x=1698241366; 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=831M8lQAV2U+MPvTWdLPEJB3MZokrsCybkH8WCmivi0=; b=iZuilOJ6EVbTiB4nSpjpgH/fy4Imz2FyxrqvF7TurKAcmFqaxHfXIkHLCuEsNI35XB cMIbY5K0LfvQecEZyVzTAaRHTWMqqaReVA2qQV5ARrIMX697lYlMVO8zSJ/e24WMpi7P 9uP0UgGu7CReITOqUIZx7HIw0iW7aJP2FG7raFwvCSrp56+lH78t79+w0qYw2zlvYqy/ I7FJJBQFE/GbXR2Shf13VW4IWp9qik52Zc6s2bbC2PFJON4DMYh67H3kbp2/6WIE1VNc LCBP8QzWe1++M/AOgTYaXNu8OJGwHKyUqrYN7CZX/5rjz0Iyj+rql1J1wz9EnW/puonR 2d2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697636566; x=1698241366; 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=831M8lQAV2U+MPvTWdLPEJB3MZokrsCybkH8WCmivi0=; b=OI0VjdiynXp+EReDrL9w/juaEQidoEf33WiQCzginx3fAsLySJzgXa/ALNACIZE5MF h6x0Uofj0epaxtrhMlVsm5H/sumzadOhEiJbQJbXTxYjRyp6HsjBGp7+f73ipC9YvApA OVj26xSMoBk/96xkfI0gR9er+61Cib6dMkze8xX6ot2qY+wvSIkznVd1P20pLM1d4Clj +9Tyn4QC39zLn5oGlWELxuDb9BPSYtCIwykn5LB87SiADd9A+EN8DhG7OL8qmkdD78Lv sg+TrOLknYB+oHtPGIdX3dnQFA4QgO9S5vnJYOGLWDZ4alpPax5Kyl9YndSfTo422kuF zhgw== X-Gm-Message-State: AOJu0YwiIeBJY3ff0ZRNoUKUOmmFOGp3+hPW+qtWZRAdAcZFWBRoBfkQ S5sqgLZuqbcn6URgsUY5lht0aud3IgCZ9lJUJM4= X-Google-Smtp-Source: AGHT+IHXx2VwMrVlLk0peLNdXx+dkhqXoUp1Om3bHIzbQLKsfhTxWhZ+XgUlF+yAACAsG/SotsGco4lpNaldMcBv0xQ= X-Received: by 2002:a05:6102:7cc:b0:457:d5d3:c58e with SMTP id y12-20020a05610207cc00b00457d5d3c58emr4000867vsg.0.1697636566221; Wed, 18 Oct 2023 06:42:46 -0700 (PDT) MIME-Version: 1.0 References: <173ca550-71a0-4bd4-96f2-b64b6155115a@app.fastmail.com> In-Reply-To: Date: Wed, 18 Oct 2023 10:42:09 -0300 Message-ID: To: Brandon Jackson Cc: Robert Landers , Levi Morrison via internals Content-Type: multipart/alternative; boundary="0000000000007ccbeb0607fdd095" Subject: Re: [PHP-DEV] Two new functions array_first() and array_last() From: deleugyn@gmail.com (Deleu) --0000000000007ccbeb0607fdd095 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 18, 2023 at 10:29=E2=80=AFAM Brandon Jackson wrote: > > You may be using them and be totally unaware that you are using them. > > Emphasis on that. Take promises for example. Anyone using libraries > that incorporate promises either are using fibers or will likely be > using them in the near future. And I'd say that one pattern is > probably used enough to be considered more than just a corner of php. > If you have 5 developers dealing with issues originated from Fibers and a billion developers using it oblivious that they are using it, why `array_first()` , a function targeted at a billion developers, needs to cater for issues being faced by 5 developers? I don't mean to discredit/reduce/invalidate the work/efforts that developers working with Fibers encounter, but my point is that if you're using Fibers without knowing it, then any inner problem of Fibers do not mean anything to you as the developers providing the library/functionality will have to find ways to avoid exposing an API with broken behavior. Whether today or 1 year from now 100% of PHP code will be taking advantage of Fibers or not is irrelevant to this discussion. --=20 Marco Deleu --0000000000007ccbeb0607fdd095--