10000 `null` as type · Issue #1269 · Safe-DS/DSL · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

null as type #1269

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 ac 8000 count related emails.

Already on GitHub? Sign in to your account

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

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 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
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant
0