-
Sometimes a function or method can return one of several types, depending on the passed in arguments or external factors. Best example is probably `open()`, but there are other examples in the standar…
-
### Summary
_No response_
### Feature Spec
As a Wing user, I would like to be able to express enums where each choice may have one or more associated fields.
Examples:
```js
// Wing
e…
-
### System Info
not relevant here
### Who can help?
@stevhliu
### Information
- [ ] The official example scripts
- [ ] My own modified scripts
### Tasks
- [ ] An officially suppo…
-
**Bug Report**
In 1.11.0, classes that inherit from os.PathLike could be used with `os.path` methods. As of 3.12, these methods claim to accept "any object implementing the [os.PathLike](https:…
-
連続で恐縮ですが,また質問です.
`Int` と `Vector` が混ざる可能性のある `Tuple` を引数に持つ関数を書きたいとします.
``` julia
julia> function myfunction1{N}(t::NTuple{N,Union{Integer, Vector{Float64}}})
return t
end;
```
``…
-
This input
```
type InterestLevel
= NotAtAllInteresting
| NotVeryInteresting
| Neutral
| Interesting
| VeryInteresting
```
yields
```
fromStringInterestLevel : InterestLevel -> …
-
Here's a problem with (anonymous) union types, given the following:
```
f x = (x "ABC", x 123)
```
what is the type?
keean updated
8 years ago
-
## Problem
Our team :) has an Otel Prisma middleware in our app.
Usage example:
```ts
prisma.$use(
OtelPrisma.createMiddleware({
attributes: {
$exclude: {
…
-
We should not represent "unbound" as a type, because it's only meaningful within a scope, it shouldn't "travel" across scopes as a type.
Instead, we should explicitly use the use-def map methods to…
-
### 🔎 Search Terms
discriminate union export destructure destructuring
### 🕗 Version & Regression Information
- This is the behavior in every version I tried (including the nightly one), and I revi…