solid-cljs icon indicating copy to clipboard operation
solid-cljs copied to clipboard

Allow omission of for macro index binding

Open misterzirillo opened this issue 1 year ago • 0 comments

Hello! I was trying out this wrapper and came across a problem when writing using s/for like this:

(s/for [[v] some-sequence] ; no index binding
  ...)

Shadow throws an unhelpful macroexpansion error in this case. This PR allows the caller to omit the index binding and avoid the confusing error. What do you think?

Thanks for the library, BTW. This is looking like a promising alternative to the many CLJS+React solutions out there.

misterzirillo avatar Mar 03 '23 18:03 misterzirillo