Liste des Groupes | Revenir à l misc |
On 30/08/2024 01:49, Bart wrote:There's lot of things that language syntax might not need. For example, I could dispense with the closing parentheses here:On 29/08/2024 13:24, David Brown wrote:<snipping for brevity>On 28/08/2024 21:27, Bart wrote:On 28/08/2024 19:48, David Brown wrote:
It's just too 'open'. The contents of foo look like they're leaking into the rest of the program. As it is, someone looking at this in the future wanting to a a new statement to 'if a:' might think it ends before the comments since that 'anewstmt' is too far from the main body.It does not /need/ delimiters.
>
It needs delimiters:
>
>
def foo(a, b, c) :
if a :
if b :
if c :
doThis()
end
bnewstmt
end
>
# comment
# comment
anewstmt
end
end
It does, sometimes, need a bit more care, especially if you have lots of nesting.A /lot/ more care.
(And again let me repeat - I prefer languages to have explicit delimiters. But that does not stop me being able to write Python code, or being happy with the language overall. There are a dozen things I dislike about Python, of which whitespace blocking is a very minor one, but there are many dozens more things I do like about it for the tasks for which I use the language.)I just find the syntax fragile.
If you're going fix it, then fix up, and not wait 30+ years to do so!How about just fixing the ******* language? That must be better than a million programmers wasting time creating their own fixes.Ah, so it is better to invalidate all the work done by these million programmers so far, along with all the tools, books, courses, documentation, etc., than to say that people writing big functions might want to add an occasional comment? Yes, I can see how that makes perfect sense.
Both brace-style (and especially C-style optional braces) and indent-based have their problems.>Sure. We all have opinions about all sorts of things. Some people even have /informed/ opinions, that might be relevant to other people.Having made your own language(s) gives you no more and no less right to comment about features of other languages that you like or dislike.>
>
I had my opinions even before I used my own stuff.
>
One thing I despised was the begin-end business in Algol60 and Pascal, which has the same nuisance as braces in C-like languages.You don't like whitespace based blocks, and you don't like explicit delimiters for blocks. Maybe you just don't like structured programming? (Not all programming languages are structured.)
>
I didn't like writing 'end else begin' any more than '} else {'. My stuff (and a few languages have picked up on it), uses just 'else', which also limits the placement possibilities when you have one token rather than three.
Ah, it is the need to press a couple of extra keys that you despise so much?no, it's just poor ergonomics. Language designers must have thought it neat to allow only a single statement for function bodies, loop bodies, or branches of conditional code.
Are you saying that no language (C for example) has flaws?Yes. I'm into language design. But I'm also interested in aspects of it that many disregard, such as microfeatures, or ease of deployment.That's great. But being interested in languages, their design, and their features does not mean having an obsession about calling their features "flaws".
>
So I don't count?It's not just me!For every programmer involved in changing and developing the Fortran language, there are a thousand programmers who use it - whichever version of it they find best for their job. Now, it is important that these one-in-a-thousand programmers are there, improving the language. But most of us are in the 999-in-a-thousand group that /use/ the language. (In that one-in-a-thousand I am including the people who actively take part in discussions or proposals for changing the language, but not people who just moan about stuff in discussion groups.)
>
Clearly you can take your own complaints seriously for your own languages, and they are very important to you personally. But in the grand scheme of things, they are utterly irrelevant to everyone else. So you are also in the 999-in-a-thousand group, just like everyone else here.Not really. You just want to belittle the stuff I do.
Complaining about languages (or any kind of tool) doesn't change them - it doesn't do anything except make you less happy about using them. It's fine to discuss alternative ways to handle aspects of a language that you don't like, and to see if you can make it work better for your needs and preferences. It's fine to compare it to other languages, and see if there are alternatives that would suit you better. And sometimes having a rant is fun - after all, complaining (especially about the weather) is the national pastime for Brits. But mostly it is counter-productive.You still get it. I can actually change my 'weather'! You're just jealous.
This isn't a Python group nor a C group. Any language can be discussed including private ones.Python is full of ill-advised choices. And it's become almost as much of a monster as C++, with a million incompatible features bolted on.So don't use it if you don't like it. Mushy peas are an ill-advised choice - I choose not to eat them, rather than to go to cookery groups and tell everyone how horrible they are.
>
You don't, certainly.Funny, I can complain about lots of languages that I never use!Yes, and no one takes your opinions seriously. Do you think there might be some reason for that?
Les messages affichés proviennent d'usenet.