Skip to content

abstract types with fields #4935

Open
Open
@JeffBezanson

Description

@JeffBezanson

This would look something like

abstract Foo with
    x::Int
    y::String
end

which will cause every subtype of Foo to begin with those fields.

Some parts of the language internals already anticipate this; it's a matter of hooking up the syntax and filling in a few missing pieces.

Metadata

Metadata

Assignees

Labels

featureIndicates new feature / enhancement requestsspeculativeWhether the change will be implemented is speculative

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions