Different methods with same name but different signature?

Kevin Dahlhausen morse at harborcom.net
Thu Apr 15 10:12:33 EDT 1999


"Fredrik Lundh" <fredrik at pythonware.com> wrote:


>> - using different names for the methods,
>
>the second method is preferred -- it's faster, easier to
>understand, and less error-prone
>
>imho, it's also an improvement over the pure visitor pattern,
>since it allows you to generate "logical events" that doesn't
>correspond to "physical" data instances in your model.

I don't quite follow you.  Can you explain this in a more detail?




More information about the Python-list mailing list