Thread overview
Lost in Translation: Encapsulation
Nov 06, 2018
Mike Parker
Nov 06, 2018
David Gileadi
Nov 06, 2018
Joakim
Nov 06, 2018
12345swordy
Nov 06, 2018
Dennis
November 06, 2018
Last week, inspired by another discussion in these forums about D's private-to-the-module form of encapsulation, I spent a few hours putting a new article together for the blog. Ali, Joakim, Nicholas helped me get it in shape.

The blog:
https://dlang.org/blog/2018/11/06/lost-in-translation-encapsulation/

Reddit:
https://www.reddit.com/r/programming/comments/9up2yo/lost_in_translation_encapsulation_in_d/
November 06, 2018
On 11/6/18 8:14 AM, Mike Parker wrote:
> Last week, inspired by another discussion in these forums about D's private-to-the-module form of encapsulation, I spent a few hours putting a new article together for the blog. Ali, Joakim, Nicholas helped me get it in shape.
> 
> The blog:
> https://dlang.org/blog/2018/11/06/lost-in-translation-encapsulation/
> 
> Reddit:
> https://www.reddit.com/r/programming/comments/9up2yo/lost_in_translation_encapsulation_in_d/ 

As usual, an excellent bit of writing containing things I wasn't aware of. Thanks!
November 06, 2018
On Tuesday, 6 November 2018 at 15:14:55 UTC, Mike Parker wrote:
> Last week, inspired by another discussion in these forums about D's private-to-the-module form of encapsulation, I spent a few hours putting a new article together for the blog. Ali, Joakim, Nicholas helped me get it in shape.
>
> The blog:
> https://dlang.org/blog/2018/11/06/lost-in-translation-encapsulation/
>
> Reddit:
> https://www.reddit.com/r/programming/comments/9up2yo/lost_in_translation_encapsulation_in_d/

Nicely done, think this could do well on proggit/HN/lobste.rs.
November 06, 2018
On Tuesday, 6 November 2018 at 15:14:55 UTC, Mike Parker wrote:
> Last week, inspired by another discussion in these forums about D's private-to-the-module form of encapsulation, I spent a few hours putting a new article together for the blog. Ali, Joakim, Nicholas helped me get it in shape.
>
> The blog:
> https://dlang.org/blog/2018/11/06/lost-in-translation-encapsulation/
>
> Reddit:
> https://www.reddit.com/r/programming/comments/9up2yo/lost_in_translation_encapsulation_in_d/

You just describe how package access attribute works better then the spec itself!
Good job.

-Alex
November 06, 2018
On Tuesday, 6 November 2018 at 15:14:55 UTC, Mike Parker wrote:
> [...]

I noticed that the `export` visibility attribute is curiously not mentioned anywhere in the article. I suppose it is not relevant to the encapsulation story, but it is weird to see it in the spec (https://dlang.org/spec/attribute.html#visibility_attributes) among public, private etc. but not the article.