Sealed classes - would you want them in D?
bauss
jj_1337 at live.dk
Fri May 11 19:30:51 UTC 2018
On Friday, 11 May 2018 at 05:26:36 UTC, Apocalypto wrote:
> On Friday, 11 May 2018 at 05:10:08 UTC, Uknown wrote:
>> On Friday, 11 May 2018 at 04:43:09 UTC, KingJoffrey wrote:
>>> On Friday, 11 May 2018 at 03:32:25 UTC, Uknown wrote:
>>> Whereas D makes it part of the implementation of 'the module'
>>> ( which is an even higher level of abstraction).
>>>
>>> This is an abomination!
>>>
>>> A class should have the capacity to protect its
>>> attributes/methods - even from the module.
>>
>> Let's not start this discussion again
>> https://forum.dlang.org/post/tksnoqntxtpgqbwslxni@forum.dlang.org
>
> If an encapsulation problem is highlighted again and again, may
> be it's time to acknowledge at least that there is a problem.
It's a problem to you, but not to me and I'm sure many others in
the D community can agree that private being module level has a
lot of benefits over private being "class-level".
More information about the Digitalmars-d
mailing list