-
Notifications
You must be signed in to change notification settings - Fork 0
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
unknown
default value for stubs
#951
Comments
lars-reimann
added a commit
that referenced
this issue
Mar 29, 2024
lars-reimann
pushed a commit
that referenced
this issue
Apr 1, 2024
## [0.9.0](v0.8.0...v0.9.0) (2024-04-01) ### Features * `unknown` default value of stub parameters ([#952](#952)) ([78103e3](78103e3)), closes [#951](#951) * `unknown` type ([#973](#973)) ([4638249](4638249)), closes [#967](#967) * add constraints to stubs ([#953](#953)) ([dc5bf3b](dc5bf3b)) * allow any widening/narrowing type cast ([#948](#948)) ([ce01628](ce01628)) * checking of parameter bounds ([#925](#925)) ([610604f](610604f)), closes [#18](#18) * Markdown documentation generator ([#963](#963)) ([77d04de](77d04de)), closes [#663](#663) * stubs for `safe-ds` library ([#950](#950)) ([155b1c0](155b1c0)), closes [#926](#926) * VS Code command to dump diagnostics into a JSON file ([#928](#928)) ([34fa884](34fa884)), closes [#927](#927) ### Bug Fixes * do not memoize calls containing lambdas calling segments ([#944](#944)) ([114fee6](114fee6)) * language server crash on startup ([#947](#947)) ([9923074](9923074)), closes [#945](#945) * type checking of two union types ([#949](#949)) ([21fc485](21fc485))
🎉 This issue has been resolved in version 0.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem?
Sometimes we want to mark a parameter in the stubs as optional, but don't know its exact default value or cannot express it in the language. Here, the exact default values are only provided for documentation anyway.
A possible solution is to make the type nullable and use
null
as the default value. This, however, also means that the library must acceptnull
there. Moreover, it allows passingnull
explicitly, which is often not desired.Desired solution
unknown
.Nothing
.UnknownValue
if it occurs in the computation.Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered: