<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>FYI, looking at my code, the most common use-case is:</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">func setSomething(something: Bool, animated: Bool)</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">R+<br><br>Sent from my iPhone</div><div><br>On 25 Mar 2016, at 23:33, Erica Sadun via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=us-ascii">I am looking for examples of method/function signatures that use multiple Boolean flags, e.g.<div class=""><br class=""></div><div class=""><font face="Courier" class="">func generateContact(withAddress: Bool, withEmail: Bool, withPhone: Bool) -> Customer // not my code</font></div><div class=""><br class=""></div><div class="">If you have app code or library code around that you can check, I would greatly appreciate if you can share signatures with me or just generally comment on how often this pattern shows up in your daily life. I am specifically looking for: use of two or more separate Boolean parameters passed as flags. </div><div class=""><br class=""></div><div class="">I would also welcome examples of option sets that replaced Boolean flags with a note as to whether that option set type is used elsewhere in your app.</div><div class=""><br class=""></div><div class="">I am following up to an action item that Brent Royal-Gordon mentioned on-list a while back but I want real supporting motivating code evidence before I move forward with a draft proposal.</div><div class=""><br class=""></div><div class="">Feel free to email me off-list. Thank you, -- Erica</div><div class=""><br class=""></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></body></html>