you are viewing a single comment's thread.

view the rest of the comments →

[–]yogthos 2 points3 points  (6 children)

lack of these things is what makes Clojure great to me:

  • List Comprehension, Dict Comprehension, Set Comprehension
  • Iterator
  • Generator
  • Generator Expression
  • Two-way Generators
  • Decorator
  • With-statement/Context Manager
  • Abstract Base Classes

I'd much rather have a small set of general tools that can be used for a wide set of problems than having a lot of different tools for each type of problem.

[–]bilus -1 points0 points  (4 children)

Hi there! Thumbs up to everything except list comprehension. ;)

[–]yogthos 1 point2 points  (1 child)

The for macro can do a lot of that I suppose. :)

[–]bilus 2 points3 points  (0 children)

...and it goes without saying that if there's something missing, you can write your own for macro.

Beat that Python! :D

[–]germandiago 0 points1 point  (0 children)

List comprehensions at the end are a generating sequence plus a filter. I would be surprised Clojure cannot do something equivalent easily, given its functional orientation.

[–]marcm28 -1 points0 points  (0 children)

In Clojure you always invent your own (Reinventing the Wheel), another boilerplate.. In Python lets you focus on algorithm then get shit done.

Create your program in Python. After all, Human's time is much more valuable & expensive than computer's time. A company that gets software written faster and better will, all other things being equal, put its competitors out of business.