Liste des Groupes | Revenir à cl c |
On 20.04.2025 13:43, bart wrote:Sorry, I forgot the rules. Only YOU are allowed to call adding one extra loop type 'overloading' of the language. But *I* am not allowed to call the plethora of integer types and support macros 'overloading' of the same language.On 20/04/2025 11:18, Janis Papanagnou wrote:I haven't said this "is fine". It wasn't at all the topic here.On 19.04.2025 15:05, bart wrote:>
But overloading in the form of 30-40 integer types to represent the 8
types i8-i64 and u8-u64, plus the 16 different combinations of writing
'unsigned long long int', and so on, is fine. As are the dozens
(hundreds?) of macros in stdint.h/inttypes.h.
In C? I don't recall any examples in C that could be written without 'for'.Show me a for-loop that cannot be expressed with existing features. Many(There have been sufficient examples posted.)
are likely to be clearer!
It makes not much sense to spread them across a multi-line blockHere's the example you snipped:
of statements. - If you haven't ever experienced that, and still
cannot see and understand that if explained to you, then I can't
help you.[*]
[*] Maybe you should visit some University courses. Despite yourI think it is YOU whose brain is so bound to having just the ONE kind of loop to do half a dozen different jobs, none of them well.
long programming history you really seem to miss some elementary
basic programming experiences. Or are you mentally so bound to
primitive loops and your brain so inflexible that nothing helps.
But they do! Try looking at hundreds of thousands of lines of open source projects like I do.I don't know why people think that cramming as much code as possibleBut that's not what programmers should do.
into for(...) is a good style of coding.
Why do you again makeWhy are you so crazy about putting everything onto one line? You're saying that:
up things. - The point is to keep things together that belong
together.
Huh? I have very ordinary 'for' statements that are similar to dozens of other languages.So, you don't like the idea of having multiple simple features, eachWhy do you think so.
with a well defined job that a compiler can check.
I merely noted that if you, as the language designer, let yourself
get triggered by feature wishes (whether they fit in your language
design or not) that this is not what I'd consider to be sensible.
Les messages affichés proviennent d'usenet.