dart-lang / dart-lang/language
Extension types should be able to omit their bodys.
Open
feature
- Dominant language
- TeX
- Stars
- 2.9k
- Forks
- 239
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 14
Description
Currently, extension types can't omit their body.
```An extension type declaration must have a body, even if it is empty.```
As a *smart* alternative of `typedef`, onliner terminated by semicolon seems important.
Contributor guide
Research direction
Start by locating the Dart language specification rule quoted in the issue and read the surrounding extension type declaration rules. Compare the proposed semicolon-terminated form with typedef syntax; done means an extension type can omit its body while retaining valid declaration and parsing rules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100