FYI, Wikipedia's article on uniform access is great.  <br><br><a href="http://en.wikipedia.org/wiki/Uniform_access_principle">http://en.wikipedia.org/wiki/Uniform_access_principle</a><br><br><div class="gmail_quote">On Thu, Apr 21, 2011 at 4:30 PM, Robert Jacques <span dir="ltr"><<a href="mailto:sandford@jhu.edu">sandford@jhu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Thu, 21 Apr 2011 15:41:17 -0400, David Simcha <<a href="mailto:dsimcha@gmail.com" target="_blank">dsimcha@gmail.com</a>> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Apr 21, 2011 at 3:39 PM, Jonathan M Davis<br>
</blockquote>
<br></div>
[snip]<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I know that there are a number of people on the list - particularly newer<br>
posters - who fully expect @property to be strict and are surpised when it<br>
isn't. And I see _zero_ problem with strong property enforcement as long as<br>
the compiler isn't buggy with regards to properties (which it currently<br>
is).<br>
So, I'm 100% behind strict enforcement.<br>
<br>
- Jonathan M Davis<br>
</blockquote></blockquote>
<br></div>
What about the fact that no two people can agree what should and shouldn't be a property? Or, more practically, that third party library A won't conform with organization B's coding policies? Or how about that an O(1) property which gets re-factored into a big expensive O(N) operation (i.e. see bug 5813) Or ranges/containers that may all have different mixes of function-like methods and field-like methods. Speaking of templates, what about how well/poorly opDispatch, etc compose with @property? Oh, and then there are entire articles against the @property solution to the field/method syntax problem in computer science literature (look up the Uniform access principle used in Ruby and Eiffel).<br>

<br>
Also, surprise isn't necessarily a bad thing. Methods-as-properties surprised me I received when I first started using D and it put a massive smile of joy onto my face in the process.<div><div></div><div class="h5"><br>

<br>
_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com" target="_blank">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
</div></div></blockquote></div><br>