4 ms·
Ill definitely give that a go. I feel like I NEED to learn Lisp. My college data structures prof had his own book where all the java examples had a lisp counter
by wara23arish 5y ago
Ill definitely give that a go. I feel like I NEED to learn Lisp. My college data structures prof had his own book where all the java examples had a lisp counterpart.
He wouldn’t allow us to use normal Java data structures for assignments rather a lisp data structure called “cons”.
Not sure how different elisp and lisp is but syntax wise they look identical to me.
- Jtsummers 5y agoIf you know some Common Lisp, Emacs Lisp isn't hard to learn (and they're even closer than when I learned elisp 15-20 years ago). Some minor gotchas with literal syntax (literal arrays/vectors and chars are represented differently in each) and some differences in their standard libraries. A more major gotcha is elisp's dynamic scope, which comes up if you're used to lexical scope. https://www.gnu.org/software/emacs/manual/html_node/elisp/Dynamic-Binding.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Dy... In practice, I've never been bitten by this except when I tried to do some fancier functional programming things in elisp that I normally would use another language for. And you can specify that you want lexical scope: https://www.gnu.org/software/emacs/manual/html_node/elisp/Lexical-Binding.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Le... The whole section those two come from: https://www.gnu.org/software/emacs/manual/html_node/elisp/Variable-Scoping.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Va...
- wara23arish 5y agoVery cool. Thanks for the info. https://www.cs.utexas.edu/users/novak/cs31436.html https://www.cs.utexas.edu/users/novak/cs31436.html this is the book i mentioned earlier if you’re interested. e.g. of building a linked list I might go through some of it purely in lisp for the heck of it.