Is there a guideline for when to use curly vs. square braces, when the 
effect would be the same?

For example PRIMER.md uses curly braces for text content, but it's just a 
one-way binding:

<span>{{first}}</span>

Computed bindings are another example. PRIMER.md uses curly braces, which 
seems confusing because it's not really two-way binding:

<x-child some-property="{{getValue(otherThing)}}">

Finally in one-way downward binding (notify: true is not set on a 
property), using curly braces won't result in the host property being 
updated.

Are there any performance reasons to use one or the other? Or suggested 
style or forward-compatibility reasons?

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/fdb138e1-dc82-420a-9d10-ec0d55a715cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to