dart-lang / dart-lang/language

Extension types should be able to omit their bodys.

Open
#3,355 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.