News for hackers. Stuff that matters.
Re:Python Design Patterns (2018) by hcrisp on Sunday March 13, 2022 @04:21PM (#30665335)
I found the quote. He says Peter Norvig wrote that "16 out of 23 patterns have qualitatively simpler implementation in Lisp or Dylan than in C++ for at least some uses of each pattern" and that Python shares some of the dynamic features of these languages such as first-class functions. I wonder if making GoF patterns simpler or even "invisible" in C++ using functions or callable-objects is implicitly not allowed because of the static typing of the language or if it just wasn't considered by the authors.

There are no comments on this comment yet.