Deutsch   English   Français   Italiano  
<vts2nf$1lm06$3@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.os.vms
Subject: Re: Clair Grant on VMS code base
Date: Thu, 17 Apr 2025 23:26:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <vts2nf$1lm06$3@dont-email.me>
References: <vsh5m5$3is6e$1@dont-email.me> <vtj025$18n4d$1@dont-email.me>
	<vtj2tu$1cfo8$1@dont-email.me> <67fee5b8$0$708$14726298@news.sunsite.dk>
	<vtplin$9us$2@reader1.panix.com> <m6ca1qF8fe6U1@mid.individual.net>
	<vtqtdq$lmr6$1@dont-email.me> <6800fa70$0$709$14726298@news.sunsite.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 18 Apr 2025 01:26:40 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="815e419e5016bffc0d489426d3e0a5c2";
	logging-data="1759238"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+pcASEZBYl1nMXzR+dBTUT"
User-Agent: Pan/0.162 (Pokrosvk)
Cancel-Lock: sha1:hqv5A6R7rYBhbM77+nyIS/YSFj4=
Bytes: 1967

On Thu, 17 Apr 2025 08:56:17 -0400, Arne Vajhøj wrote:

> If we discuss what is the "right" answer, then I would actually say 2.
> 
> 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.

How much difference would such distinctions make in real-world code, 
anyway? I suspect not much. Longer compound statements would dominate 
shorter ones in the line count.