On 6/3/13 3:05 AM, Manu wrote:
On 3 June 2013 02:37, Andrei Alexandrescu <seewebsiteforem...@erdani.org
<mailto:seewebsiteforem...@erdani.org>> wrote:

    On 6/2/13 9:59 AM, Manu wrote:

        I've never said that virtuals are bad. The key function of a
        class is
        polymorphism.
        But the reality is that in non-tool or container/foundational
        classes
        (which are typically write-once, use-lots; you don't tend to
        write these
        daily), a typical class will have a couple of virtuals, and a whole
        bunch of properties.


    I've argued if no dispatch is needed just make those free functions.


You're not going to win many friends, and probably not many potential D
users by insisting people completely change their coding patterns that
they've probably held for decades on a trivial matter like this.

This is actually part of the point. You keep on discussing as if we design the language now, when in fact there's a lot of code out there that relies on the current behavior. We won't win many friends if we break every single method that has ever been overridden in D, over a trivial matter.


Andrei

Reply via email to