Skip to content

Ability to define maps or switch-case statements #98

@hrj

Description

@hrj

It should be possible to define maps.

Tentative syntax:

define myMap = {
  0 : 123,
  "name" : 456,
  2013/may/1 : "value"
}

Alternatively, add ability to define switch case statements. Then special map support is not required; functions can be written to achieve the same result:

define myMap(index) = switch(index) {
  0 : 123,
  "name" : 456,
  2013/may/1 : "value"
}

The switch-case concept is more powerful, hence I would prefer that.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions