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

null as type #1269

Open
lars-reimann opened this issue Nov 24, 2024 · 0 comments
Open

null as type #1269

lars-reimann opened this issue Nov 24, 2024 · 0 comments
Labels
enhancement 💡 New feature or request

Comments

@lars-reimann
Copy link
Member

lars-reimann commented Nov 24, 2024

Is your feature request related to a problem?

The type of the null literal is currently Nothing?. This is not very intuitive.

Desired solution

We may allow null as a type and simplify Nothing? to null.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

When simplifying a union type, we should include null as a dedicated option, rather than attaching a ? to one of the elements.

@lars-reimann lars-reimann added the enhancement 💡 New feature or request label Nov 24, 2024
@lars-reimann lars-reimann added this to DSL Nov 24, 2024
@github-project-automation github-project-automation bot moved this to Backlog in DSL Nov 24, 2024
@lars-reimann lars-reimann changed the title null as type? null as type Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 💡 New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant