News for hackers. Stuff that matters.
Re:The Grug Brained Developer (2022) by zelphirkalt on Thursday June 19, 2025 @04:25AM (#44316589)
If you work in a language that can pass closures as arguments, then you don't need a special visitor pattern. It is one of those patterns, that exists because of limitations of languages. Or, if you want to call passing a closure visitor pattern in some cases, it becomes so natural, that it does not deserve special mention as something out of the ordinary. You may be too smart for it.

There are no comments on this comment yet.