Skip to content

Incorrect bracket kind allowed. #80

@python-processing-unit

Description

@python-processing-unit

According to the specification section 4.4.2:

TNS indexing MUST use square brackets ([ and ]) with a comma-separated list of indices.

And the specification section 4.5.2:

MAP indexing MUST use angle brackets (< and >) with a comma-separated list of keys.

In the implementation, however, both square and angle brackets may be used for both TNS and MAP indexing.

Prefix REPL. Enter statements, blank line to run buffer.
>>> TNS: t = [0d1, 0d2]
>>> PRINT(t<0d1>)
0d1
>>> MAP: m = <"foo" = 0d1>
>>> PRINT(m["foo"])
0d1
>>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions