Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

() has %Undefined% type #768

Open
Necr0x0Der opened this issue Sep 9, 2024 · 1 comment
Open

() has %Undefined% type #768

Necr0x0Der opened this issue Sep 9, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Necr0x0Der
Copy link
Collaborator

I'm not sure whether subj is a bug or a feature, but for me it was somewhat unexpected that the code

(: cns (-> $A $A $A))
!(cns 1 ())

type-checks. This behavior might be convenient, so I don't have strong opinion whether we need to add (: () Unit) into stdlib, but we may need to decide what behavior should be and add a unit test covering it.

@Necr0x0Der Necr0x0Der added the question Further information is requested label Sep 9, 2024
@vsbogd
Copy link
Collaborator

vsbogd commented Sep 11, 2024

Adding (: () Unit) doesn't help in current code state. Because any expression can be additionally interpreted as %Undefined% type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants