hoplon / javelin

Spreadsheet-like dataflow programming in ClojureScript.
803 stars 44 forks source link

formulet assertion should count bindings, not binding-pairs #41

Closed jjttjj closed 1 year ago

jjttjj commented 4 years ago

This fixes a small bug where you couldn't use formulet with a non-even number of bindings.

(macroexpand '(formulet [a (cell 123)]
                           (+ 1 2)))
Unexpected error (AssertionError) macroexpanding formulet at (REPL:1:1).
Assert failed: first argument must be a vector of binding pairs
daveyarwood commented 4 years ago

I also submitted a PR over 2 years ago with this same fix: #38

I'd love to see this fixed and released :)

alandipert commented 1 year ago

Fixed with #38