Virtual functions are virtually invisible!

Fabio Zadrozny fabiofz at gmail.com
Sat Jul 16 18:34:54 EDT 2011


On Sun, Jul 10, 2011 at 2:15 PM, rantingrick <rantingrick at gmail.com> wrote:
> On Jul 4, 3:43 am, Gregory Ewing <greg.ew... at canterbury.ac.nz> wrote:
>> rantingrick wrote:
>> > what concerns me is the fact that virtual methods in derived
>> > classes just blend in to the crowd.
>> > I think we really need some
>> > sort of visual cue in the form of forced syntactical notation (just
>> > like the special method underscores).
>>
>> If you're suggesting that it should be impossible to override
>> a method unless it is specially marked somehow in the base
>> class, I think that would be a bad idea.
>
> Sorry i did explain properly... No NOT marked in the BASE class but
> marked in the DERIVED class! My concerns are from a readability
> standpoint.



I also like the idea of override annotations and I've created a blog
post at: http://pydev.blogspot.com/2011/06/overrideimplements-templates-on-pydev.html
to explain how I do use it (and in a way that I think should be
standard in Python the same way it's in Java).

Cheers,

Fabio



More information about the Python-list mailing list