JohnEarnest / ok

An open-source interpreter for the K5 programming language.
MIT License
585 stars 73 forks source link

x!y doesn't check for errors when part of a larger expression #67

Closed ngn closed 7 years ago

ngn commented 7 years ago
 `a`b!`c`d`e
length error.
 #`a`b!`c`d`e
3
JohnEarnest commented 7 years ago

Hm. Actually I think the issue is that ! doesn't check the lengths of vectors at all, but the prettyprinter chokes on formatting symbol-keyed dictionaries with uneven key/val vectors:

 1 2!`c`d`e
1 2!`c`d`e