Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112465 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94362 invoked from network); 7 Dec 2020 21:37:15 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Dec 2020 21:37:15 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9FC5F18050A for ; Mon, 7 Dec 2020 13:06:16 -0800 (PST) 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-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 ; Mon, 7 Dec 2020 13:06:16 -0800 (PST) Received: by mail-lf1-f46.google.com with SMTP id a8so5347454lfb.3 for ; Mon, 07 Dec 2020 13:06:16 -0800 (PST) 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=lOtmegCLRyG+WgTL/aia0oPUhKjH/ix1s1DYLTXRHxM=; b=q/s695Het0h1Qj39qB9C6EWUTxC4Q5kqENuSH6UHiZQDovwO1SwTr0mSJb6c7Q9LjL ZFnWTmUj3T5hJzWpTT33hWxq9BCKZ+RbtkXPbBWwqq8+FSYFZawkncl04nNiBVB2cwJk fe/ghayOaSXZJJ8ulAYs/WV/qZZ1QdipvtoNZplz/9YTbFNoMPLkErXvnrvVNeVuDifh 23Y/ORFfDRa/bqIOodtYrd0jkc/nh/C36nLRRJdjln8T8aCB/cOAmx1752Ig1DjEi2V1 J4D2dj7S4DY2VMO2pszXaVRhL+J3g31dN+gtW2Bxy9w5UAix0f4z+84KaS3m18yxrXHl a8zQ== 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=lOtmegCLRyG+WgTL/aia0oPUhKjH/ix1s1DYLTXRHxM=; b=K8eTZE4BpoZcJVp4bZs7uV8fabVaAoLF68r1Y4xF0CX8PjyJ40ejVINkrnQCxB0f1B AmOlUMQ5Wxf1elkNbcFxp954e8d6TjHN8UHTbFuHLkIBEQrcZ+mtMfA9ZLG/ItYWxtV9 0xdXOMlXoO5SNKKfHxzc6PedpCqI994I6EaWvsAX2LP2PRX8hTc6N3mdvAMjuCOhOFby lBxratFTuBIKSVHveNHbKnjMQDg93yVftZw1cLWfVQLo0sOBYwcsR8cu+ikZZ0i1VGCr kBjbnF6O/z3seYnfXcwUwkf0eboBmCxQjLYrVK9J9bDeU/HIsnUxrFXE3DqfEuCMzELo xUKg== X-Gm-Message-State: AOAM532pmGRuDMq4XhH4pqwsdEpXLylsbmDDrOPefOhiTc/4G7XJTqLi 5eAP87dlpJeHLMJopOQvtGScfg+mANV77WBzrmQ= X-Google-Smtp-Source: ABdhPJwgDmDadaVqZcif4SdgwBmqfWb8W3Q8mEvWSdEOczvLKxoX4+C9Rwht9KasSRbKU2UE44AoGKPk9CXttr9ZcT8= X-Received: by 2002:a05:6512:78:: with SMTP id i24mr3889904lfo.152.1607375174701; Mon, 07 Dec 2020 13:06:14 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 7 Dec 2020 22:06:00 +0100 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="0000000000004f16e705b5e632b7" Subject: Re: [PHP-DEV] [RFC] Enumerations From: olleharstedt@gmail.com (=?UTF-8?Q?Olle_H=C3=A4rstedt?=) --0000000000004f16e705b5e632b7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 7 Dec 2020, 21:36 Olle H=C3=A4rstedt, wrot= e: > Did you discuss exhaustiveness checking already? > Nevermind, this is done by match already. > On Sat, 5 Dec 2020, 00:25 Larry Garfield, wrote: > >> Greetings, denizens of Internals! >> >> Ilija Tovilo and I have been working for the last few months on adding >> support for enumerations and algebraic data types to PHP. This is a >> not-small task, so we've broken it up into several stages. The first >> stage, unit enumerations, are just about ready for public review and >> discussion. >> >> The overarching plan (for context, NOT the thing to comment on right now= ) >> is here: https://wiki.php.net/rfc/adts >> >> The first step, for unit enumerations, is here: >> >> https://wiki.php.net/rfc/enumerations >> >> There's still a few bits we're sorting out and the implementation is >> mostly done, but not 100% complete. Still, it's far enough along to sta= rt >> a discussion on and get broader feedback on the outstanding nits. >> >> I should note that while the design has been collaborative, credit for >> the implementation goes entirely to Ilija. Blame for any typos in the R= FC >> itself go entirely to me. >> >> *dons flame-retardant suit* >> >> -- >> Larry Garfield >> larry@garfieldtech.com >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: https://www.php.net/unsub.php >> >> --0000000000004f16e705b5e632b7--