Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117780 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67993 invoked from network); 24 May 2022 10:59:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 May 2022 10:59:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3AB0B1804C4 for ; Tue, 24 May 2022 05:41:18 -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=-0.0 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, 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 ; Tue, 24 May 2022 05:41:17 -0700 (PDT) Received: by mail-vs1-f49.google.com with SMTP id c62so18050356vsc.10 for ; Tue, 24 May 2022 05:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YLm9YRSrC9hz6sQgRCFvfXhU077Nx2uKl0b1qRjB4Po=; b=MXY1jgzCCmgXMVbaaiHhCmrqQzDV0hHHzs/PVsLhVaXPhugCntAlErQadWIH6ernI9 UzMQpO6YjQ+TRJBas3yonOiAgnMIbZdMSOjfqcGlsTW5jh1lpI3XjNYg9nmOhW8m99Ic 5CXidCd5c4GlVgHAlKe/KVzDOPtgbpB6o8Dp1SU8hvP9MYLs/lonclGPmMMGPWPNxu4S ammtDas8tE6HRrSjmOOtt69Z5hMRpOBMeJVsSL2YowX1ewGqnZ6eoY0wxzmclN7rbOun MtSv1Nevb6tK9hwkdB8MhWnyzQvpKsVmadVcCaHuvokp6NT96snB5FvmDrq3/QStsKRC KE+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YLm9YRSrC9hz6sQgRCFvfXhU077Nx2uKl0b1qRjB4Po=; b=HE8pgbG1UFlW+cp5UrHN5rgb00GaEJ25JZpsx1Ur7ACiInpmJc/vlY/pUGT1FDTdAk ASDYAGifz0Z3y2H1HMitFbrot9lpaBf/060gaf8rQxk1CqWehvesaFgMIOwfa3k7IvzE PuhIIbWfCaPWusKqQ2zpbJ5WjCKrmwEigTtLluFDaKgAjBsdE6ZHKzBfQ8V7I7lNT87W vnx309VcEBhJ/sYDjY2D8TaRdn4ZMDSORbkAZpCik5ErmEFSSb6CsdxyvdJhk/bg5XzD ZQW9dlPrcQ0OWpb84PAEyJWN3UAc/7nasOwv1Ff6GvkeJv7e7K6gzysnNNj7Q2btvgDj VfVQ== X-Gm-Message-State: AOAM530KTpb+ybnkiaYgy4xik5sbcUs4XCwLCS6WgRa1n9YiaibsRcdu YR9Ao16X+9uVH6o5H9tfdWT8UoBfMfZLGd751fNGRHcCRck3LQ== X-Google-Smtp-Source: ABdhPJxuYUZ5O95NEgEm9JNjmXj0fwQ+nKeLnzUJrtCayltYfnZX3934mblr5ZhjNwAKbwk34Z/dbGRKxcbUgDKFtSs= X-Received: by 2002:a67:cb8f:0:b0:337:9334:af30 with SMTP id h15-20020a67cb8f000000b003379334af30mr6590548vsl.42.1653396076855; Tue, 24 May 2022 05:41:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 24 May 2022 13:41:03 +0100 Message-ID: To: ROX Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Body-less methods From: Danack@basereality.com (Dan Ackroyd) Hi Rox, On Mon, 23 May 2022 at 15:49, ROX wrote: > > I focus on Developer eXperience and language consistency. When you have karma to write the RFC, you should probably include in the text why having an extra piece of capability in the language (i.e. one more thing to learn), that only saves two characters is a better DX than the current situation. In particular, as it's a slightly different meaning from the other places where no body is allowed, as Guilliam Xavier wrote in https://externals.io/message/114324#114334: > To me ; means not "empty body" (that's {}) but really "no definition, > only declaration" (or "no body, only signature", and also "no code > executed"), i.e. an abstract method (either explicitly declared so in a > class, or implicitly in an interface). It's not obvious to me that body-less methods would be 'consistent'. btw, there's a reasonable chance that whether people like the general idea or not is an aesthetic choice, and so people will either like the idea or not based on instinct rather than 'logic'. By spelling out why you think it's better, rather than assuming people will agree with that, would probably give the RFC the best chance of succeeding. cheers Dan Ack