Liste des Groupes | Revenir à co vms |
On Thu, 17 Apr 2025 08:56:17 -0400, Arne Vajhøj wrote:It is all based on averages.If we discuss what is the "right" answer, then I would actually say 2.How much difference would such distinctions make in real-world code,
>
for i := 1 to 10 do writeln(i)
>
for i := 1 to 10 do
writeln(i)
>
for i := 1 to 10 do begin
writeln(i)
end;
>
for i := 1 to 10 do begin
writeln(i)
end;
>
for(i = 1; i <= 10; i++) printf("%d\n", i);
>
for(i = 1; i <= 10; i++)
printf("%d\n", i);
>
for(i = 1; i <= 10; i++) {
printf("%d\n", i);
}
>
for(i = 1; i <= 10; i++)
{
printf("%d\n", i);
}
>
I would say 2 for all.
anyway? I suspect not much. Longer compound statements would dominate
shorter ones in the line count.
Les messages affichés proviennent d'usenet.