Skip to content

Abstract modifier unnecessary for abstract methods #3898

Closed
@gbracha

Description

@gbracha

An abstract method (or getter/setter) need not have an abstract modifier; the absence of a body unambiguously identifies it as abstract.

By making the abstract modifier optional or eliminating it entirely, one can encourage a pattern where abstract classes are used instead of interfaces with little syntactic penalty.

This is already in the 0.11 draft spec.

Metadata

Metadata

Assignees

Labels

area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).type-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions