4 ms·
> how can I do all of those and at the same time write in > less code. It's not about writing the same algorithms in less code but about the way you design th
by bitcracker 15y ago
> how can I do all of those and at the same time write in
> less code.
It's not about writing the same algorithms in less code but about the way you design them. When you write Lisp code the same way as say Java or C++ then it's likely that you won't have less code.
Lisp changed the way how I write programs. THAT makes the difference. For instance, in Java or C++ I write a loop to apply a function on a data collection. In Lisp I just use a map function for those elements. In Lisp it's very usual to use macros to shorten code. These macros have NOTHING to do with the harmful C++ macro system. They are just functions to create well structured code.
Python copied list comprehensions from Lisp. This is a good example how a Lisp fesature makes code way shorter.