<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta content="text/html; charset=utf-8">
</head>
<body class="" style="word-wrap:break-word">
<div>I totally agree. For clarity, are we in agreement that the definition of "folder" is the underlying file system's implementation of a folder rather than some metadata setting? I am thinking of how Xcode as a view of project folder that at times can leave
on one confused.</div>
<div><br>
</div>
<div>My preference is to keep it simple, to use the underlying file system to decide what is a folder. Does that sound ok?</div>
<div><br>
<div class="acompli_signature">Kind regards, <br>
Jim Malak <br>
Director <br>
Beryle & Lee, Inc, <br>
O +1-330-818-2600 <br>
M +1-234-716-2658 <br>
F +1-330-818-2560 <br>
<br>
email/Skype: <a dir="ltr" href="mailto:jim.malak@beryle-lee.com">jim.malak@beryle-lee.com</a>
<br>
<a dir="ltr" href="http://beryle-lee.com">http://beryle-lee.com</a> <br>
<a dir="ltr" href="http://linkedin.com/in/jamesmalak">http://linkedin.com/in/jamesmalak</a>
<br>
<a dir="ltr" href="https://www.facebook.com/BeryleLeeInc">https://www.facebook.com/BeryleLeeInc</a></div>
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Aron Lindberg <aronl@me.com><br>
<b>Sent:</b> Thursday, December 8, 2016 6:26:10 AM<br>
<b>To:</b> Adrian Zubarev<br>
<b>Cc:</b> Jim Malak; swift-evolution@swift.org<br>
<b>Subject:</b> Re: [swift-evolution] Any consideration for directoryprivate as a compliment to fileprivate?</font>
<div> </div>
</div>
<div>
<div class="">I think this is a great idea!</div>
<div class=""><br class="">
</div>
<div class="">I would prefer calling it folderprivate tho.</div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On 8 Dec 2016, at 08.29, Adrian Zubarev via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="bloop_markdown" style="font-family:Helvetica,Arial; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(254,254,254)">
<p class="" style="margin:15px 0px">Whoops I meant<span class="Apple-converted-space"> </span><code class="" style="font-family:Menlo,Consolas,'Liberation Mono',Courier,monospace; font-size:10pt; border-top-left-radius:3px; border-top-right-radius:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; background-color:rgb(248,248,248); color:inherit; border:1px solid rgb(234,234,234); margin:0px 2px; padding:0px 5px; word-break:normal; word-wrap:normal">directoryprivate</code><span class="Apple-converted-space"> </span>not<span class="Apple-converted-space"> </span><code class="" style="font-family:Menlo,Consolas,'Liberation Mono',Courier,monospace; font-size:10pt; border-top-left-radius:3px; border-top-right-radius:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; background-color:rgb(248,248,248); color:inherit; border:1px solid rgb(234,234,234); margin:0px 2px; padding:0px 5px; word-break:normal; word-wrap:normal">dictionaryprivate</code>.
I’m probably still sleepy.<span class="Apple-converted-space"> </span></p>
<div class="" style="margin:15px 0px"><br class="webkit-block-placeholder">
</div>
</div>
<div class="bloop_original_html" style="font-family:Helvetica,Arial; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(254,254,254)">
<div id="bloop_customfont" class="" style="font-family:Helvetica,Arial; font-size:13px; margin:0px">
<br class="">
</div>
<br class="">
<div id="bloop_sign_1481182058496196864" class="bloop_sign">
<div class="" style="font-family:helvetica,arial; font-size:13px">-- <br class="">
Adrian Zubarev<br class="">
Sent with Airmail</div>
</div>
<br class="">
<p class="airmail_on" style="margin:15px 0px">Am 8. Dezember 2016 um 08:18:24, Adrian Zubarev (<a href="mailto:adrian.zubarev@devandartist.com" class="" style="color:rgb(65,131,196); background-color:inherit; text-decoration:none">adrian.zubarev@devandartist.com</a>)
schrieb:</p>
<blockquote type="cite" class="clean_bq" style="margin:15px 0px"><span class="" style="margin-top:0px; margin-bottom:0px">
<div class="" style="word-wrap:break-word">
<div class=""></div>
<div class="">
<div class="bloop_markdown">
<p class="" style="margin:15px 0px">You haven’t seen this in the list because no one requested<span class="Apple-converted-space"> </span><code class="" style="font-family:Menlo,Consolas,'Liberation Mono',Courier,monospace; font-size:10pt; border-top-left-radius:3px; border-top-right-radius:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; background-color:rgb(248,248,248); color:inherit; border:1px solid rgb(234,234,234); margin:0px 2px; padding:0px 5px; word-break:normal; word-wrap:normal">dictionaryprivate</code><span class="Apple-converted-space"> </span>yet.
:D</p>
<hr class="" style="height:0.2em; border:0px; color:rgb(204,204,204); background-color:rgb(204,204,204); display:inherit">
<p class="" style="margin:15px 0px">@core-team: See what you have done with<span class="Apple-converted-space"> </span><code class="" style="font-family:Menlo,Consolas,'Liberation Mono',Courier,monospace; font-size:10pt; border-top-left-radius:3px; border-top-right-radius:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; background-color:rgb(248,248,248); color:inherit; border:1px solid rgb(234,234,234); margin:0px 2px; padding:0px 5px; word-break:normal; word-wrap:normal">>>file<<private</code><span class="Apple-converted-space"> </span>thing.<span class="Apple-converted-space"> </span><code class="" style="font-family:Menlo,Consolas,'Liberation Mono',Courier,monospace; font-size:10pt; border-top-left-radius:3px; border-top-right-radius:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; background-color:rgb(248,248,248); color:inherit; border:1px solid rgb(234,234,234); margin:0px 2px; padding:0px 5px; word-break:normal; word-wrap:normal">typerprivate</code>,<span class="Apple-converted-space"> </span><code class="" style="font-family:Menlo,Consolas,'Liberation Mono',Courier,monospace; font-size:10pt; border-top-left-radius:3px; border-top-right-radius:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; background-color:rgb(248,248,248); color:inherit; border:1px solid rgb(234,234,234); margin:0px 2px; padding:0px 5px; word-break:normal; word-wrap:normal">typepublic</code><span class="Apple-converted-space"> </span>all
these requests for new access modifiers.<span class="Apple-converted-space"> </span><img src="http://t1.gstatic.com/images?q=tbn:ANd9GcT3cujrbG_i0xySoXKp-suW9lZkpwPtIl2MeORabYg8_sdj0KArU6rA" alt="facepalm" class=""></p>
<p class="" style="margin:15px 0px">Instead of just going with</p>
<pre class="" style="margin:15px 0px; font-family:Menlo,Consolas,'Liberation Mono',Courier,monospace; font-size:10pt; border-top-left-radius:3px; border-top-right-radius:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; background-color:rgb(248,248,248); color:inherit; border:1px solid rgb(204,204,204); overflow:auto; padding:4px 8px; word-break:normal; word-wrap:normal"><code class="swift" style="font-family:Menlo,Consolas,'Liberation Mono',Courier,monospace; font-size:10pt; border-top-left-radius:3px; border-top-right-radius:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; background-color:rgb(248,248,248); color:inherit; border:0px; margin:0px; padding:0px; word-break:normal; word-wrap:normal">private
private(file)
// for new one
private(type)
</code></pre>
<p class="" style="margin:15px 0px">I know there would be some people that would forget about<span class="Apple-converted-space"> </span><code class="" style="font-family:Menlo,Consolas,'Liberation Mono',Courier,monospace; font-size:10pt; border-top-left-radius:3px; border-top-right-radius:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; background-color:rgb(248,248,248); color:inherit; border:1px solid rgb(234,234,234); margin:0px 2px; padding:0px 5px; word-break:normal; word-wrap:normal">(file/type)</code><span class="Apple-converted-space"> </span>and
write only<span class="Apple-converted-space"> </span><code class="" style="font-family:Menlo,Consolas,'Liberation Mono',Courier,monospace; font-size:10pt; border-top-left-radius:3px; border-top-right-radius:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; background-color:rgb(248,248,248); color:inherit; border:1px solid rgb(234,234,234); margin:0px 2px; padding:0px 5px; word-break:normal; word-wrap:normal">private</code><span class="Apple-converted-space"> </span>everywhere,
which is probably the main reason why we have<span class="Apple-converted-space"> </span><code class="" style="font-family:Menlo,Consolas,'Liberation Mono',Courier,monospace; font-size:10pt; border-top-left-radius:3px; border-top-right-radius:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; background-color:rgb(248,248,248); color:inherit; border:1px solid rgb(234,234,234); margin:0px 2px; padding:0px 5px; word-break:normal; word-wrap:normal">fileprivate</code><span class="Apple-converted-space"> </span>now.</p>
<hr class="" style="height:0.2em; border:0px; color:rgb(204,204,204); background-color:rgb(204,204,204); display:inherit">
<p class="" style="margin:15px 0px">Anyways let’s be a little more constructive here.</p>
<p class="" style="margin:15px 0px">Hi Jim, regarding your request, it feels like this is something that falls into the topic of<span class="Apple-converted-space"> </span><strong class="" style="">submodules</strong>. :) Correct me if I’m wrong here.</p>
</div>
<div class="bloop_original_html">
<div id="bloop_customfont" class="" style="font-family:Helvetica,Arial; font-size:13px; margin:0px">
<br class="">
</div>
<br class="">
<div id="bloop_sign_1481180858140833792" class="bloop_sign">
<div class="" style="font-family:helvetica,arial; font-size:13px">-- <br class="">
Adrian Zubarev<br class="">
Sent with Airmail</div>
</div>
<br class="">
<p class="airmail_on" style="margin:15px 0px">Am 8. Dezember 2016 um 07:50:07, Jim Malak via swift-evolution (<a href="mailto:swift-evolution@swift.org" class="" style="color:rgb(65,131,196); background-color:inherit; text-decoration:none">swift-evolution@swift.org</a>)
schrieb:</p>
<blockquote type="cite" class="clean_bq" style="margin:15px 0px">
<div class="" style="margin-top:0px; margin-bottom:0px">
<div class="">
<div class=""><span class="">My apologies up front if I am going about this incorrectly. I have been exploring extensions in Swift 3 both as a part of protocol-oriented programming and as a way to encapsulate related code to improve readability and maintainablity
of otherwise more complex classes I have designed. I am able to encapsulate methods and calculated properties in extensions and restrict their use to the object type I am extending as long as everything is in one file via fileprivate. </span></div>
<div class=""><span class=""><br class="">
</span></div>
<div class=""><span class="">I would like to be able to have my class or structure file in a directory that contains my associated extensions (also in separate files) and be able to restrict the access of appropriate properties and methods to that common
directory. This would allow the same level encapsulation as fileprivate with the benifit of being able to organize code into sepereate files based on function.</span></div>
<div class=""><span class=""><br class="">
</span></div>
<div class=""><span class="">I did not see this in the commonly rejected list but am unsure if this is something that is out of scope for 4.0. Is this something I can write up a proposal for? Is there some other approach that I missed that I should be using
instead?</span></div>
<div class=""><span class=""><br class="">
</span>
<div class="acompli_signature"><span class="">Kind regards,<br class="">
Jim Malak<br class="">
<br class="">
</span></div>
<span class=""><br class="">
</span></div>
<span class="">_______________________________________________<br class="">
swift-evolution mailing list<br class="">
<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">
https://lists.swift.org/mailman/listinfo/swift-evolution<br class="">
</span></div>
</div>
</blockquote>
</div>
<div class="bloop_markdown"></div>
</div>
</div>
</span></blockquote>
</div>
<div class="bloop_markdown" style="font-family:Helvetica,Arial; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(254,254,254)">
<div class="" style="margin:15px 0px"><br class="webkit-block-placeholder">
</div>
</div>
<span class="" style="font-family:Helvetica,Arial; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(254,254,254); float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica,Arial; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(254,254,254)">
<span class="" style="font-family:Helvetica,Arial; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(254,254,254); float:none; display:inline!important">swift-evolution
mailing list</span><br class="" style="font-family:Helvetica,Arial; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(254,254,254)">
<span class="" style="font-family:Helvetica,Arial; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(254,254,254); float:none; display:inline!important"><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a></span><br class="" style="font-family:Helvetica,Arial; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(254,254,254)">
<span class="" style="font-family:Helvetica,Arial; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(254,254,254); float:none; display:inline!important"><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br class="" style="font-family:Helvetica,Arial; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(254,254,254)">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>