Extending D's support for object-oriented design with private(this)

NotYouAgain NotYouAgain at gmail.com
Tue Apr 30 07:42:45 UTC 2024


On Tuesday, 30 April 2024 at 06:08:52 UTC, NotYouAgain wrote:
>

Interesting take on access (visibility) controls in Swift prior 
to Swift fixing this.

https://blog.human-friendly.com/swift-access-controls-are-like-cs-and-that-isnt-necessarily-a-bad-thing

The above blog was written before Swift 3 came out, which fixed 
private to mean what everyone had always expected it to mean.

D has the same problem. C like access control. .. and it's not 
surprising that Walter chose this, due to his very strong 
affinity with C.

But many Swift oop developers didn't like the C like access 
controls.

Swift designers fully understood and accepted the argument, the 
ack. the mistake they made, and they just fixed it.

Everyone is still happy using Swift, and Swift is a better 
language after the fix, than before it.



More information about the dip.ideas mailing list