Skip to content

"Nested" ternary in string interpolation ambiguity #966

@sparr

Description

@sparr
a ? "x #{ b ? 'y' : 'z' }" : ''

Is this a nested ternary, of the sort that https://rubystyle.guide/#no-nested-ternary prohibits?

If not, could that be made explicit in some way?

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