apple / apple/pkl

Ability to inherit multiple classes

Open
#619 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
11.5k
Forks
402
Avg merge
1d 15h
Merged PRs (30d)
20

Description

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!"
}
```

Contributor guide

Open the contributing guide

Research direction

Start with the issue's single- and multiple-class inheritance examples and trace the language's inheritance implementation and related tests. Define the supported multiple-inheritance behavior and consider the work complete when the shown form is accepted with appropriate coverage.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.