Liste des Groupes | Revenir à cl c |
On 06/12/2024 19:41, Bart wrote:
I want to make my comment both fit on one line, and line up with the other, so I had to leave out '(on my keyword)'. I'd hoped that was implied.My language:Since some of us live in a world with more than one person - indeed, more than one country - you might like to know that "=" is shifted on many keyboards.
>
println =a,=b # 13 characters, 0 shifted
>
Spaces were left out to do a fairer comparison. Spaces aren't a big deal, they are fairly easy to type, I even left one in in my example because it looked too odd otherwise, and I was still ahead anyway.(And that space is optional!)The biggest irritation I have with your style, whether in your language or in C, is the lack of space. It's a big key - it's easy to press.
Good spacing habits (in the broadest sense) is the single biggest factor to readability of code, text, hand-writing, and pretty much anything else.That is misleading. Forth REQUIRES those spaces otherwise it wouldn't work; each line would be read as one giant token. It's not because it wants to instill good habits.
The language Forth is not known for being easy to read amongst non- experts, but one thing it gets right is insisting that there are spaces between tokens.
Pretty much everything in C requires more typing and tends to need more punctuation. It is the latter that slows me down.In C (assume the existence of stdio.h):I don't know what you are getting at, so I don't know if enough has been said or not. If you are trying to suggest that the only thing you think is important about language syntax is how you print out two variables in as few keystrokes as possible, then I suppose you have succeeded in that goal, and can therefore rest your case.
>
printf("A=%lld B=%f\n",a,b); # ~28 characters, 8 shifted
>
Enough said.
Les messages affichés proviennent d'usenet.