Skip to content

feature request: automatically migrate struct update syntax into pattern matching #199

Closed
@SteffenDE

Description

@SteffenDE

Relates to: elixir-lang/elixir#13974

It is planned to deprecate the struct update syntax %MyStruct{x | ...} in a future Elixir release. I asked José if this is a feature they're planning to integrate into mix format --migrate, but it is not likely at the moment.

Since styler also added an automatic rewrite for unless to !if, this would be a nice feature, although it's probably it bit more complicated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions