probmods / webchurch

A Church to Javascript compiler (DEPRECATED)
Other
140 stars 15 forks source link

Queries without definitions are broken #57

Closed stuhlmueller closed 10 years ago

stuhlmueller commented 10 years ago

This doesn't work:

(rejection-query
 (flip)
 #t)

Error message: rejection-query has the wrong number of arguments

This works:

(rejection-query
 (define foo 1)
 (flip)
 #t)

I encountered this here where I use enumeration-query in this fashion.

juliusc commented 10 years ago

I noticed that Long had a change awhile back to force mh-query to work like this, so I thought that this was the convention. Long? Noah?

longouyang commented 10 years ago

I don't remember why I made that change, but looking back on it, it seems wrong.

We should be able to have 0 defines.

longouyang commented 10 years ago

Fixed in bb5a01d3f9a0608de61301e4a0814535975ce2fd