Skip to content

Add field accessing and indexing of arguments to format! #8614

Closed
@tikue

Description

@tikue

This would be nice if for no other reason than to reach feature parity with Python's str.format(), in which one can write things like:

>>> "{foo[0]} and {foo[1]} went up the hill".format(foo=['jack', 'jill']) 'jack and jill went up the hill'

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensionsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions