Originally created by @sandeshworld on GitHub (Aug 7, 2024).
I think being able to extend multiple classes would improve usability quite a bit!
The following is currently possible:
class Parrot extends Pigeon {
name = "Parrot"
diet = "Berries"
extinct = false
function say() = "Pkl is great!"
}
It would be useful to also be able to do something like:
class Parrot extends Pigeon, Pet {
name = "Parrot"
diet = "Berries"
extinct = false
function say() = "Pkl is great!"
}
Originally created by @sandeshworld on GitHub (Aug 7, 2024).
I think being able to extend multiple classes would improve usability quite a bit!
The following is currently possible:
```
class Parrot extends Pigeon {
name = "Parrot"
diet = "Berries"
extinct = false
function say() = "Pkl is great!"
}
```
It would be useful to also be able to do something like:
```
class Parrot extends Pigeon, Pet {
name = "Parrot"
diet = "Berries"
extinct = false
function say() = "Pkl is great!"
}
```
This would need signficantly more detail (motivation, how to resolve the diamond problem, etc, etc). This is generally a problem in (nominative) hierarchical type systems, so without further restrictions/requirements, this ask can't be satisfied.
@holzensp commented on GitHub (Aug 20, 2024):
This would need _signficantly_ more detail (motivation, how to resolve the [diamond problem](https://en.wikipedia.org/wiki/Multiple_inheritance#The_diamond_problem), etc, etc). This is generally a problem in (nominative) hierarchical type systems, so without further restrictions/requirements, this ask can't be satisfied.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @sandeshworld on GitHub (Aug 7, 2024).
I think being able to extend multiple classes would improve usability quite a bit!
The following is currently possible:
It would be useful to also be able to do something like:
@holzensp commented on GitHub (Aug 20, 2024):
This would need signficantly more detail (motivation, how to resolve the diamond problem, etc, etc). This is generally a problem in (nominative) hierarchical type systems, so without further restrictions/requirements, this ask can't be satisfied.