On Fri, Mar 14, 2014 at 09:09:02PM -0700, Bruce Leban wrote:Why not? It works with the other right-associative operator:
> I think making @ right associative would make this less suitable for other
> uses. Example
>
> someclassobject @ somevalue @ somevalue
>
> won't work with right-associativity.
x**y**z
"Works" depends on what you expect it to do. Unless you tell us what
these "other uses" are, how can we know that right-associativity won't
work?
a = {1: [10, 11, 12]}b = {1: [11, 13]
}
a + b = {
1: [10, 11, 12, 11, 13] # appends
}
a @ b = {
1: [10, 11, 12, 13] # appends non-duplicate values
}
some_query.filter(...).order_by(...).join(...)
some_query @ filter(...) @ order_by(...) @ join(...)
some_query @ { column1: value1, column2: value2, ... }
some_query @ filter(column1=value1, column2=value2, ... }