<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>One thing about print that I find odd to look at is when you don't want to use a line break: </div><div style="direction: inherit;"><br></div><div>print(someValue, terminator: "") </div><div style="direction: inherit;"><br></div><div style="direction: inherit;">What if we used an enum for these options, especially for the two most common ones?</div><div style="direction: inherit;"><br></div><div style="direction: inherit;">enum PrintTerminatorTypes {</div><div style="direction: inherit;"> case none</div><div style="direction: inherit;"> case lineBreak //default</div><div style="direction: inherit;"> case custom(String)</div><div style="direction: inherit;">}</div><div style="direction: inherit;"><br></div><div style="direction: inherit;"><span style="background-color: rgba(255, 255, 255, 0);">print(someValue, terminator: .none)</span></div><div style="direction: inherit;"><span style="background-color: rgba(255, 255, 255, 0);">print(someValue, terminator: .lineBreak)</span></div><div style="direction: inherit;"><span style="background-color: rgba(255, 255, 255, 0);">print(someValue, terminator: .custom(" --- "))</span></div><div style="direction: inherit;"><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div style="direction: inherit;"><span style="background-color: rgba(255, 255, 255, 0);">This seems clearer and more self documenting. </span></div><div style="direction: inherit;"><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div style="direction: inherit;"><span style="background-color: rgba(255, 255, 255, 0);">Obviously this isn't a really important change but:</span></div><div style="direction: inherit;"><span style="background-color: rgba(255, 255, 255, 0);">1. Swift-Evo seems light lately so why not discuss something...especially something really lightweight </span></div><div style="direction: inherit;"><span style="background-color: rgba(255, 255, 255, 0);">2. It's source breaking (...but it could be offered as an override?)</span></div><div style="direction: inherit;"><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div style="direction: inherit;"><span style="background-color: rgba(255, 255, 255, 0);">Brandon </span></div><div><br><div>Sent from my iPad</div></div></body></html>