Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110685 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 41513 invoked from network); 19 Jun 2020 14:56:31 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Jun 2020 14:56:31 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A7F9B1804F3 for ; Fri, 19 Jun 2020 06:42:41 -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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) (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 ; Fri, 19 Jun 2020 06:42:41 -0700 (PDT) Received: by mail-il1-f179.google.com with SMTP id g3so9213975ilq.10 for ; Fri, 19 Jun 2020 06:42:41 -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=UA/ljG9XW/kQkR2iBzv+kOkgSBg6gKqNkCc1lti+D7A=; b=TK0QDTQhEUevOG4732GmMDDv20CRrn/eAbiw4kjmiqhRjjrpkO33icJVevngLFaH+/ uxrZRq5dcyYhYF9liZJ8BeyS55+OJQ4WcaXdwE2f0b+Xnap6Ys+rwEPxaMayINkuuZM1 JSNWNURUY0nUkAmnAb0p06xoaHBVV3h9FAENAcemz8Lek42PWwWqiRhWAzUe4NhOOATc UapZXiXh58VxTJdlr0P0M9ll6EdL6TV4wDiVgA6mTBGzd9Aq7cjw87rJ5B1bRY1NBooB QvxFpU7cYxOkVLbb5jXkl9uBdxh7DCBJlF11xyF3FAKmm2zPSUg4bde0wWJr+cDS4yPs LsTg== 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=UA/ljG9XW/kQkR2iBzv+kOkgSBg6gKqNkCc1lti+D7A=; b=KE/bVMzKg6M8xc7eITl581UtdUMwsgxDDWWLnFGI8rx9phe0RyjhvINxsnP4PPNSoB mz3Y+4SyLTiBiogS8BxnEG2ek4xwl9rXR3OXNSDETSWnO5RNCIJvMbZvEWMq9ILLCJy8 BQjqYTDdXnBNxpZbWCU0pp5GUnaT+TvuSvCL1YZl5fUYqA2RNmbGUlZLcoOShJz9l203 aln8l5q5g92ttqqH6HQZDXeTemTc4LMzNUyOExno+EXW3YKuwzvbKtaMXoR0rqRmgUv1 YrrlS9flVrNoo5V06ul+H0UdfgiDwJjnZV1ns8NWxliNOs+AgumD9uQ6YrqxMDL4+XeO aaig== X-Gm-Message-State: AOAM531SKQg782DdXutbhXpaMdG1Ni4oyInK/FlgODlIh7YNkAig30v+ eFS33ueFxWusdigshrqjWExFd7WLeqg/+ksF/VM= X-Google-Smtp-Source: ABdhPJy//rRk/dmwgQx4dkujQrYGX6vovyt7spET5e1zgbukgLw8NMF0KDYatERilGs2Wqyn0DlONKXZuNi4hMDBvNI= X-Received: by 2002:a05:6e02:8e8:: with SMTP id n8mr3476408ilt.282.1592574160703; Fri, 19 Jun 2020 06:42:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 19 Jun 2020 15:42:29 +0200 Message-ID: To: Dan Ackroyd Cc: Gabriel Caruso , PHP Internals Content-Type: multipart/alternative; boundary="0000000000002096f605a87011f0" Subject: Re: [PHP-DEV] Make `always true` SPL methods return void From: ocramius@gmail.com (Marco Pivetta) --0000000000002096f605a87011f0 Content-Type: text/plain; charset="UTF-8" Hey Dan, Gabriel, On Wed, Jun 17, 2020 at 12:17 PM Dan Ackroyd wrote: > On Wed, 17 Jun 2020 at 03:00, Gabriel Caruso > wrote: > > > > so changing it to `void` and > > just invoke these methods sounds reasonable to me. > > What's the benefit of doing the change? > > There will almost certainly be some code somewhere that would be > broken by changing it, so it needs some benefit for doing it. > > I strongly suspect just updating the documentation to be correct, and > then leaving the code behaving as it has been for the past decade or > so, would be a better strategy. > Perhaps this is a good chance to fix the quirks around the `false` type, as well as introducing the `true` type (and using it for these specific functions)? See https://3v4l.org/ZnWmc/rfc#output See https://3v4l.org/MqsvC/rfc#output Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --0000000000002096f605a87011f0--