3 ms·
I started learning Lisp recently. The text I was reading said people complain about the parentheses and I see a number of people stating that here. But that is
by assimpleaspossi 3y ago
I started learning Lisp recently. The text I was reading said people complain about the parentheses and I see a number of people stating that here. But that is not a problem when you have an editor that understands lisp and keeps track of all that for you. Just focus on the code and the editor will take care of the parentheses for you.
- tmp_eSGPhx 3y agoAgreed. At least you can see the parenthesis. and seriously, what is the mental difference between say (print 'hello') and print('hello'), for me the first is easier. They both have the same number of parenthesis, but in the first I can see all the operations that go together. Hating python every time I use it. Python is lies all the way down. "You don't need curly braces or anything to mark your code blocks, only indentation"... until you want a multi-line item, in which case you, well, wrap it in parenthesis. foo = ("a very" "long" "string") is valid python, and so is foo = ("a very", "long", "string") but they give different results. vs (cat "a very" "long" "srtring")
- Sohcahtoa82 3y ago> foo = ("a very" "long" "string") > is valid python, and so is foo = ("a very", "long", "string") > but they give different results. That's because the former creates implicit string concatenation, while the latter is 3 distinct strings. FWIW, while I love Python, I think implicit string concatenation is a huge anti-feature. It is a source of bugs and breaks the Zen of Python which states that explicit is better than implicit. Your first line should by a syntax error, as far as I'm concerned.