Post #4284952
2026-07-31 17:08 UTC
#Kittyscript's design is kinda between a (Scheme-y) Lisp and Lua tbh.
The vararg and multiple return handling is very similar to Lua 5.5 (even before that version released).
The method handlers kinda work like Lua's metatables except that they're functions instead of tables. They're also used for general method calls.
The records (which user defined objects will be built upon) are very similar to Scheme.
It has Lisp-style cons pairs.
Kittyscript has dynamically typed semantics. There will be an optional static type system though.
Kittyscript uses the same falsiness as Lua (null and false are false, everything else is true)
It will have Lisp-style macros. The macros will be able to read and modify the context of the expression, and return any expression they want.
The default textual syntax hasn't been decided yet, probably will be something similar to Javascript, Java, Kotlin or Lua. There'll also be a Lisp style parentheses syntax available.
I might make a Lua mode for Kittyscript that parses Lua code and runs it through the Kittyscript compiler.
Replies (0)
No replies.