[swift-evolution] [Proposal] Property behaviors
brent at architechies.com
Wed Jan 13 23:53:57 CST 2016
> I was wondering if you had considered/had comments an alternative approach where you declare an ordinary new value type which meets certain rules and ‘wraps’ the existing type, then define new syntax/features in Swift for having the wrapper (or possibly even multiple levels of wrappers) be more transparent for use.
You might want to take a look at the first version of the proposal. It defined behaviors using existing constructs with certain conventions, and most posters argued that it was a bit of a mess and needed syntax to clarify what was happening.
More information about the swift-evolution