compile treats series of expressions differently from regular interpretation #2

Open
meijeru opened this Issue Jan 9, 2012 · 1 comment

Comments

Projects
None yet
2 participants

meijeru commented Jan 9, 2012

See these results of the interpreter:

>> compile [1 2 3]
== "123"
>> 1 2 3
== 3

I would expect the result of compile to be either "3", or "1;2;3", but not "123"

Owner

giesse commented Jan 9, 2012

The current compiler is "stupid". It should probably signal that case as an error. You will probably find many other cases like that.

I don't have a precise ETA for the "real" compiler, but that's what I'm working on right now, so it only depends on my free time. In any case, thanks for testing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment