<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-04-13 13:46 GMT+02:00 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">On Wed, 13 Apr 2016, Maciej Izak wrote:<br>
<br>
</span><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
2016-04-13 13:03 GMT+02:00 Michael Van Canneyt <<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
Sorry. This is simply very bad design.<br>
<br>
</blockquote>
<br>
I agree with many points. Frankly, I was surprised that they did something<br>
like using attributes in that way. I try to understand and find something<br>
positive.<br>
</blockquote>
<br></span>
Sometimes, there is nothing positive to be found, even with the biggest<br>
microscope.... :-)</blockquote><div><br></div><div>I think is worth to cite people from "Delphi core". </div><div><br></div><div>*Don't beat me for this, this is just quotation* (not my personal opinion).</div><div><br></div><div>Source: <a href="http://blog.marcocantu.com/blog/2016-april-weak-unsafe-interface-references.html">http://blog.marcocantu.com/blog/2016-april-weak-unsafe-interface-references.html</a></div><div><br></div><div>by Marco Cantu:<br></div><div><br></div><div>=== quote begin ===</div><div><div>Odd getting two comments about the attributes syntax. First, that </div><div>syntax is in the product since Delphi 2010, so not exactly new. </div><div>Second this is the syntax that has been used a few years now for </div><div>mobile...</div><div><br></div><div>As any other attribute, these attributes are applied to the following </div><div>symbol. They can also be equally applied to different types of </div><div>symbols (types, methods, declarations, parameters, return values). </div><div>The syntax you are suggesting is hard to apply in this different </div><div>cases. Also using the attribute syntax for predefined and user-</div><div>defined attributes is very consistent. Other languages do it... </div><div>because it is nice, expressive, and flexible.</div><div><br></div><div>I was in fact chatting earlier with a developer who is </div><div>experimenting with the [Result: Unsafe] modifier. Hard to express </div><div>with a "traditional" syntax.</div><div><br></div><div>BTW: there is also the new [volatile] attribute in 10.1 Berlin.</div></div><div>=== quote end ===</div><div><br></div><div>by Rudy Velthuis ... <br></div><div><br></div><div>=== quote begin ===<br></div><div><div>For all those who don't like the attribute syntax, it</div><div>looks indeed ugly if you write</div><div><br></div><div> [Result: unsafe] function Bla...</div><div><br></div><div>but not if you format it slightly differently</div><div>(actually, the usual way):</div><div><br></div><div> [Result: unsafe]</div><div> function Bla...</div><div><br></div><div>That looks perfectly acceptable to me. </div></div><div>=== quote end ===<br></div><div> </div><div>oh my... [Result: unsafe] is a monster ;d</div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best regards,<br>Maciej Izak</div></div></div>
</div></div>