comp.lang.ada
 help / color / mirror / Atom feed
From: Lucretia <laguest9000@googlemail.com>
Subject: Re: Mariner 1 / FORTRAN bug
Date: Fri, 9 Aug 2019 14:24:09 -0700 (PDT)
Date: 2019-08-09T14:24:09-07:00	[thread overview]
Message-ID: <9f203010-2432-4ff6-a44c-3ecde392ff12@googlegroups.com> (raw)
In-Reply-To: <67d7dee5-d2d0-4569-8358-36d2fad4cf0f@googlegroups.com>

On Friday, 9 August 2019 22:05:40 UTC+1, Maciej Sobczak  wrote:
> > That is why using named arguments is better and also more clear
> > 
> >     P (I=>1, J=>2);
> 
> Of course - the best way to avoid writing bad code is to write good code. But this is true in any language. What we should expect from good languages is that bad code should be impossible, or at least writing bad code should take more effort than writing good code. And yet, what the above example shows, bad code is perfectly possible in Ada and in fact is easier - and that good code involves higher effort.
> 
> Which, ultimately, makes it more difficult for Ada to gain attention of C++ programmers, for example.

You could always have a enforce named parameters compiler option, don't know if GNAT has that, which would piss off most people if there was no editor assistance to fill that in for you.

Luke.

  reply	other threads:[~2019-08-09 21:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-12-04 20:18 C++ vs. Ada -- Is Ada loosing? happy.colorado.edu!srheintze
2019-08-08 15:23 ` robin.vowels
2019-08-12 15:47   ` Shark8
2019-08-08 15:40 ` Marina 1 / FORTRAN bug robin.vowels
2019-08-08 17:26   ` Mariner " Jeffrey R. Carter
2019-08-09  1:57     ` robin.vowels
2019-08-09  6:28       ` J-P. Rosen
2019-08-09  6:47         ` Niklas Holsti
2019-08-09 11:40           ` J-P. Rosen
2019-08-09 15:57           ` Jeffrey R. Carter
2019-08-09  8:38         ` Maciej Sobczak
2019-08-09 14:27           ` Nasser M. Abbasi
2019-08-09 21:05             ` Maciej Sobczak
2019-08-09 21:24               ` Lucretia [this message]
2019-08-09 22:03                 ` Paul Rubin
2019-08-08 17:51   ` Keith Thompson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox