Liste des Groupes | Revenir à cl misc |
On Thu, 29 Aug 2024 14:24:01 +0200, David Brown wrote:Yes - the restriction is a major advantage. Python can check it, and there are far fewer ways for the programmer to get it wrong.
def foo(a, b, c) :A redundant “return” ... kind of like my redundant “#end” comments, except
if a :
if b :
if c :
doThis()
>
That looks unfinished to me. So I will add a "return" at the end (with
a single tab indent, in this case).
yours work in a more restricted set of places ...
How silly. You should work to improve the things you can, instead of wasting effort arguing with brick walls. If you want to get involved in the design and future of a language, that's fine, but few people have the time and skills needed or the opportunity to do it as serious paid work. Getting worked up about the way Python blocking works is about as productive as getting worked up about the way English language spelling works. There are countless other more useful ways to spend your time - and certainly many more enjoyable ways.Don't you ever just accept that a language is the way it is, and it isOf course not.
perfectly useable that way?
It's not your language, so there is no "vice versa".Or think that perhaps other people in the world know better than you doAnd vice versa.
about how they want their language to work?
When there are a number of smart, experienced and educated people involved in the decisions, "obvious stupidities" are extremely unlikely. That's the point of involving multiple people and gathering opinions from many in the field.Has it never occurred to you that the people behind a givenBarring a few obvious stupidities, yes of course they were, and are, smart
language - such as Python - considered various alternatives and decided
that making it the way they did was the best choice overall for the
language they wanted?
people.
Les messages affichés proviennent d'usenet.