Skip to content

Support for array access #325

Open
Open
@niknetniko

Description

@niknetniko

We should add a new special kind of function as an allowed expression, being using (numeric) indices to access elements of an array or list.

Since we want to support this on the generic TESTed type sequence, we must consider the following cases:

  • How would we track the type of the array/list? For example, in Java, depending if the sequence is an array or a list, the syntax is different. Since we don't track the types of variables, we could work with helper functions, that use the correct notation at runtime.
  • The Python syntax (e.g. this_is_a_list[0]) can be used in the DSL. However, how would we differentiate array element access and dictionaries with numeric keys? See Support value access for dictionaries/maps #324.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions