ta0kira / zeolite

Zeolite is a statically-typed, general-purpose programming language.
Apache License 2.0
18 stars 0 forks source link

Clean up error message for param-count mismatch in function calls. #169

Closed ta0kira closed 3 years ago

ta0kira commented 3 years ago

Example error:

    In call to equals at line 35 column 12 of "lib/container/helpers.0rx"
      Count mismatch: [#k,#v] (expected) vs. [AssignedInstance [line 35 column 19 of "lib/container/helpers.0rx"] #k,AssignedInstance [line 35 column 22 of "lib/container/helpers.0rx"] #v,AssignedInstance [line 35 column 25 of "lib/container/helpers.0rx"] #k,AssignedInstance [line 35 column 28 of "lib/container/helpers.0rx"] #v] (actual)

I think there just needs to be a preliminary call to processPairs_ with readable types.