[swift-evolution] [Pitch] Object aliases

Martin Waitz tali at admingilde.org
Mon Jul 3 13:34:25 CDT 2017


Hi again,


> Hello,
> 
>> Am 30.06.2017 um 10:55 schrieb Daryle Walker via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>>:
>> 
>> I was thinking posing aliases would be like symbolic substitution; we could replace the alias with the text defining its source expression everywhere and there should be no efficiency change. But I would want any evaluation of the (sub-)object’s location to be computed once; is that where complexity could come in? I was hoping that object location determination could be done at compile-time; that’s the reason for restricting what kinds of objects can be a source object.
> 
> Have you had a look at local `inout` bindings as proposed in the Ownership Manifesto[1]?

yes of course you have, because you already replied to John ;-)
sorry for not reading the complete thread :-/

And yes, these local bindings would effectively just be a new binding for the same memory location.
This way it really would be a compile-time alias.

— Martin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170703/a22b740a/attachment.html>


More information about the swift-evolution mailing list