<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Personally I would prefer all the modified to go on the right, so that the declaration is sorted from most important to least left to right. EG:<div><br></div><div>Instead of:</div><div><br></div><div> @disguardableResult public async mutating func x() throws -> Bool</div><div><br></div><div>I would prefer something like:</div><div><br></div><div> <span style="background-color: rgba(255, 255, 255, 0);">func x() -> Bool @ throws disguardableResult public async mutating</span></div><div><br></div><div>Where @ introduces a list of space separated modifiers. <br><div><br></div><div>That’s why I also prefer:</div><div><br></div><div> let x: Int // Swift</div><div><br></div><div>over:</div><div><br></div><div> const int x // C</div><div><br></div><div>And moving the where clause to the end of the declaration. </div><div><br></div><div>Unfortunately I am not sure this is practical at this stage. <br><br><div id="AppleMailSignature">-- Howard. </div><div><br>On 10 Oct 2017, at 5:21 am, Mike Kluev via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">On Sat, 7 Oct 2017 07:48:08 +0100, <span dir="ltr"><<a href="mailto:swift-evolution-request@swift.org" target="_blank">swift-evolution-request@swift.org</a>></span> wrote:<div class="gmail_extra"><div class="gmail_quote"><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">
So it would be:<br>
<br>
func() -> @discardable Bool { }<br>
<br>
Rather than:<br>
<br>
@discardableResult func() -> Bool { }<br></blockquote><div><br></div><div><br></div><div>i'd say:</div><div><br></div><div>func foo() -> discardable Bool {</div><div> ...</div><div>}</div><div><br></div><div>if we were starting from scratch</div><div><br></div><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">
It could be even better if someone could perhaps find a shorter word that<br>
is a synonym for the word "discardable", that would be as explicit in<br>
intent as the word "discardable" is in such context, yet be written with<br>
fewer characters.<br></blockquote><div><br></div><div> Mike</div><div><br></div></div></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></div></div></body></html>