Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113875 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 42258 invoked from network); 30 Mar 2021 22:27:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Mar 2021 22:27:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 371E81801FD for ; Tue, 30 Mar 2021 15:24:50 -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-Virus: No X-Envelope-From: Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (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 ; Tue, 30 Mar 2021 15:24:49 -0700 (PDT) Received: by mail-ua1-f54.google.com with SMTP id q18so5493154uas.11 for ; Tue, 30 Mar 2021 15:24:49 -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=sf/pmRyXFNKLle4e+sTPNPh4z6ZZkpyT9s97IVFkuOk=; b=Z5vn/TnmtqW+XBzSRDgboQxAisj9biL1NXizfuOgzABgwyhL5yLv2ZiaZHwsi4deJ3 hDRKnpPjuQCdFVvJabcOdc89JMDaBiGszeFD2jkzz8Xq58ELQJDJxbE1He7fu/Pc6zFN E+9QiAYONNyC378I2F0mG7ecFrHqooiySIygjuN9sBXPWGA4rJ0b1sM8cZ2CPwCcjL9i /28BkTS6zAxtGlEBBXvYQDFDjuCIkZLEuTWF6YKLgXU0XmmB7wgsAPjpIQ4EPY3rc9e1 O9T7eCILy0vg5UcotOh/Ks3qy/4aR1UtF1g78OaqMFxhOIomE6ZLSPVfzZXvFqn9FYI/ m0Bw== 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=sf/pmRyXFNKLle4e+sTPNPh4z6ZZkpyT9s97IVFkuOk=; b=tkwoijdtqoqArLuvtYIAWKP2s4PrNZMOUaURWjNe6CncinJ5g0nbonXzMiSpkEsYjh io0Dje/YONIKP4tl/gEz3Qiel6nvlPqnnepnls9sryggmMMrp1Z8TUkI7hXlmvOw1kXp tGi7DeFvTqxnLLpC9O824Ptq9SxhGkG7UgPNlVUQXB7NbjtQQSSPZVVIHmWfcJQ2Korw 05fq5zcmZWXuqOXsVlh0q2ySewWakTbKdcOS+97v2bntHAk56xN5f9UDkdvHVheqmYHe qnr2+CYGoZs3IAknwTYaXkhR8lvjKYRIPKULWx0a7hrzhX3u1nzkyyLwbjFChNRsSl+Z VkoA== X-Gm-Message-State: AOAM532yZwwZqGzaGFwrXlDzcClE6JuHbPAEfqDmnLitnrwL8OAQxKxi gUFGG4GqwPkxZyt494xO9cQkXrrCd5AKIZWsMTI= X-Google-Smtp-Source: ABdhPJwf0GKoigszDzonf+QL9PtoxBp3/6rydGvcuYnPGUFSPIL7pH3QupaSG3/1oREVf8U9i3WkN3jqYbuDsyujC9g= X-Received: by 2002:ab0:44c3:: with SMTP id n61mr34170uan.47.1617143088331; Tue, 30 Mar 2021 15:24:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 30 Mar 2021 18:24:37 -0400 Message-ID: To: Theodore Brown Cc: Internals Content-Type: multipart/alternative; boundary="00000000000054c1f205bec8774b" Subject: Re: [PHP-DEV] [VOTE] noreturn type From: matthewmatthew@gmail.com (Matthew Brown) --00000000000054c1f205bec8774b Content-Type: text/plain; charset="UTF-8" On Tue, 30 Mar 2021 at 12:55, Theodore Brown wrote: > On Tue, Mar 30, 2021 at 10:06 AM Matthew Brown > wrote: > > > Hey everyone! > > > > The vote for adding noreturn is now open: > > > > https://wiki.php.net/rfc/noreturn_type > > > > Voting will run through April 13th > > Hi Matt and Ondrej, > > Thanks for your work on this RFC. I voted for `never` as the type name > because it's more amenable to future use cases like compile-time > exhaustiveness checks (example: > > https://www.typescriptlang.org/docs/handbook/2/narrowing.html#the-never-type > ). > > As a bonus `never` is more concise, avoids mashing two words together, > and aligns with TypeScript, which I and many other PHP devs also use. > > Kind regards, > Theodore Awesome! The conciseness argument for "never" is already mentioned in the RFC, as is TypeScript's use of the term. Full disclosure (because neither of us is eligible to vote): I slightly prefer "noreturn", and Ondrej strongly prefers "never". --00000000000054c1f205bec8774b--