On Thursday, 13 March 2014 at 15:57:22 UTC, Andrei Alexandrescu wrote:
At a level it's clear it's not a matter of right or wrong but instead a judgment call, right? Successful languages go with either default.

Andrei

For what it's worth, "education" could help solve this problem: For example, "people" where surprised by the context pointer in nested structs, and now (I think), it is (or will become) second nature to always type:

static struct S
{...}

Heck, I even do it for my global structs too now.

So maybe the issue could be solved by educating to always type (by default):

final class A
{...}

The first step in this direction would be to update the documentation to add said final in as many places where it makes sense, and then to do the same thing to the Phobos code base.

Reply via email to