by kupertino · 15y ago · 0 comments
It's like learning a foreign language: it can have a (very) different syntax from yours and at first it can be difficult. But when you learn to speak the language fluently, it comes naturally.
I experienced this also in programing languages. I started programming in Pascal and then in C, for which the syntax is almost the same. Then I went to C++ and then Java. Both are Object Oriented languages, but they have some differences in their syntax as well. Still, no big difference.
When I started with Objective-C, though, the syntax was really confusing for me, even if it's an OO language. At first I was not able to understand even the sample code. But I was interested in it (for Mac development, iPhone did not exist yet) and now I find it more natural than Java (just because I am more accustomed to it since I use it every day, not because it's better).
So, when I learnt Lisp, I did not worry about syntax anymore. Sure, it's different, but we alwys have to learn new and different things anyway. Now I develop in Clojure and syntax is, again, not a problem.
EDIT: some spelling mistakes.
Emacs has paredit or like 90% of it. Its written in clojure and you can use it as a library (https://github.com/laurentpetit/paredit.clj).
Im not sure about vim. It has nice rainbow parens (each level of nested parens gets a different colour).
[1] When I set up my Vim for Clojure development I made some research and I never saw it mentioned anywhere, so I think it's not available.
Interestingly, I picked up this rule when I got into OCaml. Then I got back to Lisp and suddenly it looked much more readable. YMMV.