Hacker News new | ask | show | jobs
by vessenes 4072 days ago
This is just beautifully expressive python. I wouldn't think of using it this way: writing

  return (not know(possible_dates)
          and all(not know(tell(Day(d)))
                    for d in possible_dates))
feels almost zen to me; or at least like Mr. Norvig likes himself some lisp at times.
2 comments

Python: write pseudocode, and then make sure it's indented properly.
He does in fact like himself some lisp: http://norvig.com/paip.html