Skip to content

Performance/UnfreezeString should be disabled or heavilly changed in Ruby 3.3+ #384

@byroot

Description

@byroot

As of ruby/ruby#8952, +"foo" and "foo".dup have similar performance, but the later doesn't require parentheses for chaining, and is much more obvious.

So IMHO rubocop-performance should advocate for .dup over +@ when applicable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions