[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Disallow empty "or" type specifier
From: |
Pietro Cerutti |
Subject: |
[PATCH] Disallow empty "or" type specifier |
Date: |
Tue, 26 Sep 2023 09:02:56 +0000 |
User-agent: |
NeoMutt/20230517-449-a10573 |
Hi all,
the attached patch makes the `(or)` type specifier invalid, as opposed
to being simplified to `*`.
This is more consistent with the mathematical interpretation of an empty
(sum) type being the bottom type having no inhabitants.
This is very explicit in OCaml, for example, where the empty type is
literally a sum (variant) of 0 types: `type t = |`.
--
Pietro Cerutti
I have pledged to give 10% of income to effective charities
and invite you to join me - https://givingwhatwecan.org
0001-Disallow-empty-or-type-specifier.patch
Description: Text document
- [PATCH] Disallow empty "or" type specifier,
Pietro Cerutti <=