<div dir="ltr">It's not as easy to type, but you can already use U+02B9 MODIFIER LETTER PRIME for this purpose. Swift accepts this:<div><br></div><div><div>let x = 1</div><div>let xʹ = x + 1</div><div>let xʹʹ = xʹ + 1</div><div>let xʹʹʹ = xʹʹ + 1</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 11, 2017 at 7:08 AM, Tuur Anton via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>I often have related variables. Would be nice to just add ' like I can in Haskell:</div><div><br></div><div>let foo = "asdf"</div><div>let foo' = "asdf2"</div><div><br></div><div>What do you think?</div><div><br></div> </div>
<br>______________________________<wbr>_________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-<wbr>evolution</a><br>
<br></blockquote></div><br></div>