3 ms·
C-like syntax: foo(1, 2, 3); if (x) { aaa(); } else { bbb(); } Lisp-like syntax: (foo 1 2 3) (if x (aaa)
by neilv 1y ago
C-like syntax:
foo(1, 2, 3);
if (x) {
aaa();
} else {
bbb();
}
Lisp-like syntax:
(foo 1 2 3)
(if x
(aaa)
(bbb))
Syntax is easy. Practical semantics is a little bit harder, but it's not hard.
Editor-wise, you want an editor that does automatic indenting and some kind of matching parentheses highlighting. Emacs is one. (Once you've learned the language, you can use a fancy structural editor, but maybe don't confuse yourself with too many new things at once.)
- mhitza 1y agoFor vim/neovim users out there, here's my setup https://gist.github.com/mhitza/a00d7900571e9f13bac2bbf4a203d21b https://gist.github.com/mhitza/a00d7900571e9f13bac2bbf4a203d... Not quite structural editing, minor annoyances, but pretty decent.