Variadic functions, inline declare and bugfixes.
Pre-release
Pre-release
·
19 commits
to master
since this release
- Fixed a bug that made two embed runtimes incompatible.
- The bug consisted of each runtime comparing types by reference with their own symbol tables, which led to one runtime seeing as "object" all the values of the other runtime.
- Now uses a nominal system, where each type has also a
__name
meta field.
- Fixed a bug that was preventing the use of
(declare ...)
locally inside functions and other blocks. - Added
table/map
function for mapping tables: The function works like list's map, but must return a key-value pair like[k v]
. - Added
table/empty?
function that tells if the table is empty or not. - Added
table/items
function which returns a list of key-value pairs. - Added Variadic functions! yay! The syntax is the same of Clojure:
(defn a-fn [x y & z] ...)
Here z is the variadic term (A list). - Added a very primitive run flag with
-u
or--run
, creates a temporary file that then is run with the commandlua
and deleted right after.