chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Disallow empty "or" type specifier


From: felix . winkelmann
Subject: Re: [PATCH] Disallow empty "or" type specifier
Date: Tue, 26 Sep 2023 13:44:28 +0200

> 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 = |`.

Thanks a lot! I've taken the freedom to push this directly, as the change
is trivial and only affects validation of user-supplied type signatures.


felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]