[swift-evolution] [Pitch] Object aliases
Martin Waitz
tali at admingilde.org
Mon Jul 3 13:29:46 CDT 2017
Hello,
> Am 30.06.2017 um 10:55 schrieb Daryle Walker via swift-evolution <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]?
Do they solve your problem?
— Martin
[1]: https://github.com/apple/swift/blob/master/docs/OwnershipManifesto.md#local-ephemeral-bindings
<https://github.com/apple/swift/blob/master/docs/OwnershipManifesto.md#local-ephemeral-bindings> <https://github.com/apple/swift/blob/master/docs/OwnershipManifesto.md#local-ephemeral-bindings>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170703/69626eeb/attachment.html>
More information about the swift-evolution
mailing list