<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>On Wed, Dec 16, 2015, at 02:09 PM, Jacob Bandes-Storch wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>+1.<br></div>
<div><div>&nbsp;</div>
<div><div>On Wed, Dec 16, 2015 at 11:44 AM, Kevin Ballard via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt;</span> wrote:<br></div>
<blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex;"><div># Alternatives<br></div>
<div>&nbsp;</div>
<div>
Do nothing and hope that at some point Swift introduces some form of first-class support for explicit immutable references. That's probably not happening any time soon.<br></div>
</blockquote><div>&nbsp;</div>
<div>What are you envisioning?<br></div>
</div>
</div>
</div>
</blockquote><div>&nbsp;</div>
<div>Not really envisioning much at the moment. Adding unsafe references would not be very good (and would be basically what we already have with UnsafePointer anyway). Personally I'm a big fan of Rust's lifetime system which allows for safe compile-time-checked references, but it does have a bit of a learning curve and is probably the most confusing part of Rust for newcomers, which is why I'm not proposing adding it to Swift as it would be incompatible with using Swift as a teaching language (I'm not sure how important that use-case is to the Swift core team but I know there's a lot of community interest there).<br></div>
<div>&nbsp;</div>
<div>-Kevin Ballard</div>
</body>
</html>