probcomp / Venturecxx

Primary implementation of the Venture probabilistic programming system
http://probcomp.csail.mit.edu/venture/
GNU General Public License v3.0
28 stars 6 forks source link

Unhelpful error message in dict syntax error #648

Open marcoct opened 8 years ago

marcoct commented 8 years ago

The error is that the value for the second element is missing:

venture[script] > dict(["a", 1], ["b"])
*** evaluation: Index out of bounds: VentureNumber(1.0)
(autorun (dict (array "a" 1) (array "b")))
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Caused by
Index out of bounds: VentureNumber(1.0)