Hello, > Am 30.06.2017 um 10:55 schrieb Daryle Walker via swift-evolution > <[email protected]>: > > 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>
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
