Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to define maps or switch-case statements #98

Open
hrj opened this issue Sep 8, 2016 · 0 comments
Open

Ability to define maps or switch-case statements #98

hrj opened this issue Sep 8, 2016 · 0 comments

Comments

@hrj
Copy link
Owner

hrj commented Sep 8, 2016

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.

@hrj hrj added the enhancement label Sep 8, 2016
@hrj hrj added this to the Version 0.3.5 milestone Sep 8, 2016
@hrj hrj modified the milestones: Version 0.3.2, Version 0.4 Sep 23, 2016
@hrj hrj modified the milestone: Next release Feb 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant