|
|
Warp wrote:
> 1) I write "private:" once in my class definition.
>
> 2) I write extensive documentation about the subject and hope people will
> read it and obey it. Many people won't.
You missed this one:
3) You name your private variables with the naming convention used by
every other package ever implemented in that language, including
the ones that define the runtime, and which every programmer knows
bypassing means future incompatibility.
> And what's wrong with the compiler telling you if you try to use it
> regardless? I really can't understand that.
You already know you're using a private variable, if you're bypassing either
global naming conventions or using reflection or something.
If the compiler actually *prevents* it, then you're locking yourself out of
a whole bunch of metaprogramming techniques that templates aren't adequate
to handle.
--
Darren New, San Diego CA, USA (PST)
My fortune cookie said, "You will soon be
unable to read this, even at arm's length."
Post a reply to this message
|
|