h3rald / min

A small but practical concatenative programming language and shell
https://min-lang.org
MIT License
311 stars 23 forks source link

Silent ignore of odd entry in dict #47

Closed zenon closed 4 years ago

zenon commented 4 years ago

{1 :uno 2 :due 3}

gives

{1} -> { 2 :due 1 :uno }

without any error message, i.e. the leftover 3 is just ignored. I think this is not a good idea. It is not exactly a bug, but I suggest to add the feature of giving an error message here.

h3rald commented 4 years ago

Well spotted! I am now raising an error in case dictionaries are unbalanced like in your case. Thanks!

(change will be included in next release)