-
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…
-
### 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…
-
Stretch goal!
Depends on #24
-
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
-
https://github.com/jwcnmr/jameswcooper/tree/main/Pythonpatterns/1.%20Intorduction%20to%20Objects/addnumstype.py
This file defines addNums method twice, but adding simple prints in bodies of those d…
-
Hi, would you please provide a sample with polymorphism ? i have tried the result is not as it should be .
issue 1: when i insert a customer, the _t type is always person when it should be both "pers…
-
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
-
From https://coq.discourse.group/t/a-question-on-defining-mutually-inductive-types-with-universe-polymorphism/2397
~~~coq
Set Universe Polymorphism.
Inductive T1@{a c} (A:Type@{a}) :Type@{c} :=
.…
-
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…