Though me and you are C++ experts, please forget about C and C++. I'd like to see any tiny bit of *constructive criticism*. Don't know why, but you are arguing not against my arguments.
On Fri, Mar 7, 2008 at 6:26 AM, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On Fri, Mar 7, 2008 at 8:53 AM, Yuri Baburov <[EMAIL PROTECTED]> wrote: > > > > I suggest {{ foo->bar }} syntax. It is simple, common to programmers, > > easy to remember and recognize, does not interfere with any other > > features. > > -1. > > 1) The primary audience of the Django template language is designers, > not programmers. I doubt you will find many designers that will > consider "->" a familiar syntax. > > 2) The biggest part of being "easy to remember and recognize" isn't > being unique - it's being idiomatic. "->" is a C++ idiom. It isn't > even close to being Python idiom. Since Python is where the Django > template language draws most of its inspiration, choosing C++ as a > source of inspiration doesn't make much sense here. > > 3) Even if you do accept programmer familiarity with C++ as a source > of inspiration, the analogy doesn't follow. "->" is a C++ syntactic > device for dealing with members of instances stored as a pointer. > Django templates don't have pointers, so any pre-existing C++ > knowledge won't help you understand what "->" means in Django - if > anything, it will hinder understanding, because it has the potential > to set people looking for the pointer definitions in a Django > template. > > Yours, > Russ Magee %-) > > > > > > -- Best regards, Yuri V. Baburov, ICQ# 99934676, Skype: yuri.baburov, MSN: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---