Skip to content

Macros API stability across language versions #3479

@davidmorgan

Description

@davidmorgan

Forked from discussion in #3466, the topic is how to avoid breaking changes to the macros API when there are language changes.

If the macros API can always avoid major version increases then macros will continue working "for free" on new SDK releases.

#3466 (comment)

The simplest is to have a package:macros/3.5.dart library for each SDK release that supports macros, and keep the old ones until we stop supporting that language version. Many will likely be identical, exports of the same underlying library. Some will have additions. Some will have breaking changes, which is why it's great that you have to opt-in to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions