Skip to content

Support Ruby 3.1 shorthand hash syntax #152

Closed
@jaredcwhite

Description

@jaredcwhite

I'm primarily excited to be able to do this:

a = "abc"
b = 123

hsh = {a:, b:}

as it's virtually identical to JS's {a, b} syntax. I also realized we don't yet support the other direction which I would like to tackle as well.

hsh => {a:, b:}

should become

let {a, b} = hsh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions