Luca Antiga

Results 171 comments of Luca Antiga

Hi. Currently dot notation is turned immediately into property/method access on the js object (Clojure behaves the same way). After all, .toUpperCase is not a function, obj.toUpperCase is. Your idea...

This one is tricky. ki uses a lot of intermediate immediate function invocations to achieve proper lexical scoping and at the same time the JavaScript `arguments` object only contains the...

Actually, it's easier than I thought. Let's start from the current state of things: arguments is correct and available right after entering the function body, e.g. ``` ki require core...

Thanks for the feedback. Another couple of (not necessarily better) options `(letargs arg_binding ...)` ``` ki require core ki macro (defargs $args) (js var $args = arguments) ki (do (defn...

Got this ``` (let [[a [b] c [[d e] f]] [1 [2] 3 [[4 5] 6]]] (add a b c d e f)) => 21 ``` working with this 5fd812b0892f3a8d9c9540a7fc1831945a14cb79...

And here's fe371c0c18671295e51823258ac6777ca4db4a41 destructuring of maps (mixed with vectors) in let forms: ``` (let [{[a] :a b :b} {:a [1] :b 2}] [a b]) => [1 2] ``` Well, that...

Great, thanks for the quote - somehow it didn't occur to me that I could check on the Clojure website. I feel the same way as you do about letc....

Added destructuring in loop 16b3051f1d71cf1650ac995fe6ddd758de60b2bd and tests for destructuring so far 06760fafaa390abdae3b144b83b2fe1f57f65e3b. Adding destructuring to function signatures is harder due to the way sweet tokenizes the arguments. I had a...

I've reproduced the issues. While the errors in the global scope could be related to the way the script passes code to sweet in ki.js, I can't understand is why...

Yes, that is definitely it, great job. It's not entirely clear to me what should happen here. Optionally suppress the stack trace that goes into the module? A workaround for...