Liste des Groupes | Revenir à cl c |
On 07/12/2024 17:58, David Brown wrote:The languages are not the same - they have different syntaxes. Forth requires good spacing for Forth. C does not require good spacing for C. I think that's a shame - I think a lot of C code would be easier to read if spaces were required in certain parts of the syntax (but not /everywhere/). Of course I don't think people could agree enough on /where/ the spaces should go in order to standardise something like that. But for example, a rule that required a space after the comma between function arguments and parameters would be a big step forward in legibility of some people's code.On 07/12/2024 17:52, Bart wrote:You specifically praised Forth for requiring spaces between tokens, which is exactly what this code has.f ( ) ;>
f ( x , y , z ) ;
++ p . x ;
q = ( void ) p ;
label :
f ( x , y , z ) ;
a [ i + 1 ] ;
>
That is just differently bad from "f(x,y,z);" and "q=(void*)p;". Too much space is bad spacing,
Les messages affichés proviennent d'usenet.