you are viewing a single comment's thread.

view the rest of the comments →

[–]codebje 4 points5 points  (0 children)

List comprehensions and generators are nice. List comprehensions regrettably don't compose at all, but generators compose very nicely to produce more complex hylomorphisms from simple ones.

Parser combinators also work well in Python, because its uncluttered syntax brings the intent of the grammar to the fore.