Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116255 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 51645 invoked from network); 9 Oct 2021 08:55:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Oct 2021 08:55:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 924451804C4 for ; Sat, 9 Oct 2021 02:41:22 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) (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 ; Sat, 9 Oct 2021 02:41:22 -0700 (PDT) Received: by mail-oi1-f173.google.com with SMTP id n63so17000114oif.7 for ; Sat, 09 Oct 2021 02:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20210112.gappssmtp.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=uvhkbAYzwYjFQowRZ7KY+L2Z3XKc3ls62tBMy7Q5XfA=; b=1z4RTSQ6OxqhMsrLEbUUyKyEzBzf2DupoFNTcHbY8BQCmyECQW0d/E+TojJ3BsAKXq GPvztm5Ph3gB7L+xTbOnxzrNsNko6maZcQDgoKW+ulJD92indP90Lh/OEps9XEiwvqHc w+kFLLVuJOY3EN+7qlzkytA1IyjAf0zkEdfyD6sun9b1Mea56QdH+1Qg7abM1/i+AwqG Ks0ToGj6gE2FVMSXVzcvLDUXlSb7CgdysDBRH8SOoGyA1+FoYsjHwQ3ASgpkX+wQcwB9 WnXGwyTc2E+E7lBkL4QeC3kFelot0HNX4efHwk0bBbvF1NZ1AwFi++3IEpeov7BoLARq 38Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=uvhkbAYzwYjFQowRZ7KY+L2Z3XKc3ls62tBMy7Q5XfA=; b=vO8e1NDDMf+UdqLE+wGEad7VqsjuBj/4y5E0NQ4O6u3AjSP+Jjox3AbuGPyzjGhMJA Yw4iKeaCKPAUxsIAafdgeeKpCfiidNLFqtEiaqBRlN2INPNbJN/MUgMXEx3tBRVI7aSC w/flyvQGEYA1I1GayPJRv2eSMPhh/B/sQlCHV0oscORAsy9gCjhU7M4Bn3qKlNrixNjE fWwYGpjMdEqLrTKQrcUObGN4SNBXSOIIVeNRhorFeZ9AayMmTdvH3hmsWuEHxDUjRp5X 3ySj2PNIgGj9qTUQyvr8Qko6733kbMGCmjPElIO/bh5RF7B5J4hkC6ODEPse5At2b1Fq NmiQ== X-Gm-Message-State: AOAM532HJMM1fwVCLnhrYwJ+jfg+H1c+CEodtZ5SZjyQR4b3dZHdoaPe uAvmASoSNTr7uDA0owj8fKr79xBVBL6X2w== X-Google-Smtp-Source: ABdhPJyDRcA5kJApe5MY3gbaUWlsiuPMq811HM81QJPZ603F0bfnCILOszPAp6obZXmsbF8Dw6gnLg== X-Received: by 2002:a05:6808:21a8:: with SMTP id be40mr9613256oib.20.1633772479892; Sat, 09 Oct 2021 02:41:19 -0700 (PDT) Received: from [192.168.1.10] (c-24-98-254-8.hsd1.ga.comcast.net. [24.98.254.8]) by smtp.gmail.com with ESMTPSA id u6sm376174ooh.15.2021.10.09.02.41.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Oct 2021 02:41:19 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) In-Reply-To: Date: Sat, 9 Oct 2021 05:41:18 -0400 Cc: PHP Internals List Content-Transfer-Encoding: quoted-printable Message-ID: <69E1836C-EAEF-442A-AEE1-5D3089EE179D@newclarity.net> References: <29103CC9-22A5-4507-A982-CFFC20450435@newclarity.net> To: Dan Ackroyd X-Mailer: Apple Mail (2.3608.120.23.2.7) Subject: Re: [PHP-DEV] Function list declaration syntax? From: mike@newclarity.net (Mike Schinkel) > On Oct 5, 2021, at 3:18 PM, Dan Ackroyd = wrote: >=20 > On Tue, 5 Oct 2021 at 18:47, Mike Schinkel = wrote: >=20 >> Consider the `Type` class[3] in the `SebastianBergmann\Type` = namespace. It contains 60 lines of function declaration to define 14 = functions that all return `false`. >=20 > PHP allows you to define functions on one line: >=20 > function isCallable(): bool { return false; } > function isFalse(): bool { return false; } > function isGenericObject(): bool { return false; } The benefit I was proposing was not just fewer lines, but also reduced = visual complexity making it easier to read and comprehend code quickly.=20= Your argument addresses the former benefit but not the latter. > If you don't like having functions take up lots of lines, it's easier > to just not follow that PSR guide line on formatting, It is not always easier for developers where whose organizations dictate = code standards. Besides, your alternative is a bit reductio ad absurdum. > rather than modify the language. You state this without justification that it has been established that = changing the language is a bad thing. If that were true, why does the = RFC process even exist as in most cases RFCs are passed to change the = language? -Mike=