effekt-lang / effekt-lang/effekt
Ignored type arguments
Open
feature
- Dominant language
- Scala
- Stars
- 469
- Forks
- 41
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 23
Description
It would be nice to have ignored type arguments like in Scala `Foo[_]` or in Kotlin `Foo<*>`. This can be useful for interfaces where an operation does not use one of the interface's type parameters, and hence callers don't have to have it at hand. This basically opens the door to existential types as well.
Example:
```effekt
interface Foo[A, B] {
def foo(): A
}
def foo[A](): A / Foo[A, _] = do foo()
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.