ki
ki copied to clipboard
lisp + mori, sweet.js
Any way to work on ki type code with REPL integration? To eval one block at a time similar to clojure REPL/Cider in Emacs?
Sometimes it's useful to have the `arguments` var available, just like js functions offer. Some cases can't quite be covered with variadic arity / multimethod functions. For example variable args...
``` ki require core ki (:a {:a :b}) ``` Results in ``` TypeError: keyword(...) is not a function ``` Example: http://ki-lang.org/editor/editor.html#ki%20require%20core%0Aki%20(:a%20%7B:a%20:b%7D)
One of the things I'd love to work out how to do is load `ki` as a library in Node, specifically to write a Webpack loader for easier development workflows....
From the docs, you can chain dot notation in the following way: ``` ki require core var r1 = ki (threadf "lol r1" (.toUpperCase) (.trim)); console.log(r1); // "LOL R1" ```...
Promises
Does ki handles promises? I've tried to play around with Fetch API, `fetch` function does return promise, but I can't figure out what is the proper syntax for `.then().catch()` in...
Negative numeric literals are not parsed correctly. E.g. [-1 -2] gets parsed as vector(-1,2), (def a -1) produces def(1). Workaround for now is enclose negative numeric literals in a unary...
This _may_ be a [sweet.js](http://sweetjs.org/) issue but since I've only encoutered it with the ki compiler so far, I'd like to track it here if it's okay with you @lantiga....