On Mon, Jun 3, 2013 at 7:03 PM, Shai Berger <[email protected]> wrote:
> > {% with my_bonnet.bees as bees if my_bonnet.bees %}
> > {% if my_bonnet.bees with my_bonnet.bees as bees %}
>
> The only problem I see with these is the repetition -- we could just allow
> "as" on {% if %}:
>
> {% if my_bonnet.bees as bees %}
>
I'm mostly concerned with ambiguous behaviour for the clauses which include
other operands. For example,
{% if user in blacklisted_users as result %}{# should result be user,
blacklisted_users or True/False? #}
It could be argued that by having a different behavior for the simple case
such as the original example could lead to confusion. Special cases aren't
special enough to break the rules.
Cheers,
AT
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.