Lispy works fairly well in the language (it is very clojure-esque), however there are a few main distinctions.
Comments begin with # instead of ;
There is a splice character, ; which is similar to ,@ in Common Lisp/Emacs Lisp in functionality (but also works outside of macros for splat-like functionality of arrays/tuples (lists))
The @ character is used outside of macros as a special leading character (similar to # in Common Lisp/Emacs lisp) for distinction of certain data-types
Problems I note when using in the mode (and things that work):
lispy-comment works well (the janet-mode package correctly defines # as the comment lead character, and lispy obviously respects this vs forcing ;)
The @ character does not work well with the language - @[1 2 3] is an array data-type, but lispy wants to change this to @ [1 2 3] - is there a way to disable this behavior to prevent adding the space?
The ; seems to confused lispy indentation rules (maybe the @ as well).
Overall, the indentation experience seems very "off" when using lispy + janet-mode.
You can see some sample .janet source code files in the root of my toy repo for the language here if you have the time and inclination to try out and experience what is going on:
There is a new(ish) minimal lisp called Janet (https://janet-lang.org)
Lispy works fairly well in the language (it is very clojure-esque), however there are a few main distinctions.
#
instead of;
;
which is similar to,@
in Common Lisp/Emacs Lisp in functionality (but also works outside of macros for splat-like functionality of arrays/tuples (lists))@
character is used outside of macros as a special leading character (similar to#
in Common Lisp/Emacs lisp) for distinction of certain data-typesProblems I note when using in the mode (and things that work):
#
as the comment lead character, and lispy obviously respects this vs forcing;
)@
character does not work well with the language -@[1 2 3]
is an array data-type, but lispy wants to change this to@ [1 2 3]
- is there a way to disable this behavior to prevent adding the space?;
seems to confused lispy indentation rules (maybe the@
as well).Overall, the indentation experience seems very "off" when using lispy + janet-mode.
You can see some sample .janet source code files in the root of my toy repo for the language here if you have the time and inclination to try out and experience what is going on:
https://github.com/ahungry/janet-code
You can find the mode forked in my repo at:
https://github.com/ahungry/janet-mode
and the language itself at:
https://github.com/janet-lang/janet