-
syntax: `type Array[T: type, N: UInt]`
```cafe
func iter_map[
T: type,
U: type,
E: effect,
](
lst: List[T],
f: func(T) E -> U,
)
Yield[Int32] | E
{
...
}
```
-
When designing polymorphism, we need to take the LLVM backend into account, as it is the main backend (and currently the only one that exists).
## Inheritance subtype polymorphism
Here is some exa…
phase updated
7 years ago
-
One of the reasons errors are modeled in Smithy is so that customer code in any programming language can handle at least some errors programmatically. This includes being able to test for a specific t…
-
i want to use sealed classes in lists
or use type `Any` and allow strings or objects in a list
can this library generate the correct schema for that?
or is there annotations to tell the librar…
-
You mentioned in the talk that the GADT technique you discussed in the talk does not support polymorphism, but it seems that it actually is possible, although not easy (I'm working through it rather s…
-
Needs to be restricted to Hindley-Milner power or less.
Full H-M is probably the way to go.
Will always need type annotations on record projections and sum constructors, as they're naturally amb…
-
There are some methods that work on single-column timearrays only: percentchange, moving, upto, collapse as far as I noticed so far.
So, as long as you pass some single-column timearray as argument (…
-
### What are you wanting to achieve?
Try to polymorphism work with source generator JsonDerivedTypeAttribute.
The DiscriminatorValueSelector func only have subClass info
```C#
public Func Discrim…
-
In order to support json-api polymorphism, we need a new method on IModelManager called `GetTypeForJsonKey`, which would be the inverse of `GetJsonKeyForType`. In order to make this work, we will need…
-
I've been playing around with the Circumflex ORM and it's very nice, but I don't see anything to permit any type of inheritance -- single table or otherwise. Is there a provision for this? I use a lot…
chasm updated
13 years ago