Very Good,<br>I'm still pondering some peculiarities in the proposal, but would like to highlight:<br><br>Declaration syntax:<br><br>@lazy<Value>: Value {<br> //.....//<br>}<br><br>And keep:<div><br></div><div>var [lazy] foo = 1738</div><div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 13, 2016, 20:07 Joe Groff via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks everyone for the first round of feedback on my behaviors proposal. I've revised it with the following changes:<br>
<br>
- Instead of relying on mapping behaviors to function or type member lookup, I've introduced a new purpose-built 'var behavior' declaration, which declares the accessor and initializer requirements and provides the storage and behavior methods of the property. I think this gives a clearer design for authoring behaviors, and allows for a more efficient and flexible implementation model.<br>
- I've backed off from trying to include 'let' behaviors. As many of you noted, it's better to tackle immutable computed properties more holistically than to try to backdoor them in.<br>
- I suggest changing the declaration syntax to use a behavior to square brackets—'var [behavior] foo'—which avoids ambiguity with destructuring 'var' bindings, and also works with future candidates for behavior decoration, particularly `subscript`.<br>
<br>
Here's the revised proposal:<br>
<br>
<a href="https://gist.github.com/jckarter/50b838e7f036fe85eaa3" rel="noreferrer" target="_blank">https://gist.github.com/jckarter/50b838e7f036fe85eaa3</a><br>
<br>
For reference, here's the previous iteration:<br>
<br>
<a href="https://gist.github.com/jckarter/f3d392cf183c6b2b2ac3" rel="noreferrer" target="_blank">https://gist.github.com/jckarter/f3d392cf183c6b2b2ac3</a><br>
<br>
Thanks for taking a look!<br>
<br>
-Joe<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div></div></div>