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.
It should be possible to define maps.
Tentative syntax:
Alternatively, add ability to define
switch casestatements. Then special map support is not required; functions can be written to achieve the same result:The
switch-caseconcept is more powerful, hence I would prefer that.