digitalmars.D.announce - Lost in Translation: Encapsulation
- Mike Parker (8/8) Nov 06 2018 Last week, inspired by another discussion in these forums about
- David Gileadi (3/13) Nov 06 2018 As usual, an excellent bit of writing containing things I wasn't aware
- Joakim (2/10) Nov 06 2018 Nicely done, think this could do well on proggit/HN/lobste.rs.
- 12345swordy (5/13) Nov 06 2018 You just describe how package access attribute works better then
- Dennis (6/7) Nov 06 2018 I noticed that the `export` visibility attribute is curiously not
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/
Nov 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!
Nov 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.
Nov 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
Nov 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.
Nov 06 2018