dart-lang / dart-lang/language

Introduce abstraction for specifying "class-like" structure

Open
#3,207 2 comments 0 reactions 1 assignee Claimed by @eernstg View on GitHub
specification
Dominant language
TeX
Stars
2.9k
Forks
239
Avg merge
2d 18h
Merged PRs (30d)
14

Description

With `extension type`, we now have five declarations which can contain static and instance members, some also constructors, and which all have the same rules about naming conflicts in the declaration. We hope, since we've had to either copy the rules for each type, or refer to "just like `class`" for things that are almost, but not entirely, like a `class`.

We should extract the shared rules into a single abstraction, so that we can specify the rules *precisely (and) once*.
Here is a [suggested approach](https://gist.github.com/lrhn/a4b628109cc7005bf211adea7e37a6fc).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.