Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
November 06, 2018 Lost in Translation: Encapsulation | ||||
---|---|---|---|---|
| ||||
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 Re: Lost in Translation: Encapsulation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | 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 Re: Lost in Translation: Encapsulation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | 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 Re: Lost in Translation: Encapsulation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | 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 Re: Lost in Translation: Encapsulation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | 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. |
Copyright © 1999-2021 by the D Language Foundation