sam a écrit : > [EMAIL PROTECTED] napisał(a): > > >> So, while I often use Python's lambdas, the imposed limitations is ok >> to me since I wouldn't use it for anything more complex. > >> Also - as a side note - while the syntax is a bit different, the >> resulting object is an ordinary function. > > And people start asking why this is that or the other way in Python, and > you can't give a good answer to newcomers, especially if Python was > chosen as a first learning language. You can't tell "because Python's > parsing mechanism don't allow statements in expressions...".
If the people asking is able to understand this explanation, I'll happily give it. Else, I'd answer "for reasons that are perhaps too complex to explain to you right now, but I'll try if you insist" !-) >>> But somebody may prefix his names with class names and cause >>> nameconflict, >> >> Here the problem is more philosophical than anything else. > > Almost the whole discussion is philosofical, but clear philosophy is a > good thing. > > > >> It's enough. FWIW, I'm not sure I had a use-case for this feature more >> than a couple time in 7+ years. > >> Simple, indeed. But why "not perfect" ? What else would you want ? > > I would expect you to told me at the beginning which "beginning" ? > that this is enough to > solve the problem what did I do ? > and that somebody can still cause name conflict, Why should I tell you something that's so obvious you observed it by yourself ? > but > Python was built for wise people. for normally intelligent people. I don't play russian roulette, and don't claim being any "wiser" for this. Ok, I'm going to be a bit harsh, but this time I'll assume it. Sam, you started this thread by asking about prototype vs class based pros and cons - with a (somewhat cargo-cult IMHO) a priori in favor of prototype. Then you started arguing about limitations and complexity induced by the class-based approach, without being able to back any of your claims wrt/ Python's object model. Then you started arguing about minor syntactic points that, whether you like them or not (and you're of course entitled to not like them) have nothing to do with Python's object model nor prototypes vs classes. Now you're complaining that "we didn't tell you x and z from the start" - like we were supposed to do your education. Are we supposed to teach you reading and writing too ? What's your problem anyway ? If you're a trolling - which I start to suspect -, then your not too bad at it. Else, it may be time to grow up. -- http://mail.python.org/mailman/listinfo/python-list