Lynn McGuire wrote this screed in ALL-CAPS: || |
Hat tip to: ||
http://herbsutter.com/2026/04/29/london-meetup/ |
Heh, I only recently started using C++17 features. |
|
Herb talks about C++20 issues with: |
|
- Modules. (They don't work.) |
- Coroutines. (They're not actually coroutines.) |
- Concepts. (Cool, but most of you won't ever write one.) || |
Apparently GCC will be getting contracts and reflection "soon". || |
GCC 12.2.0 accepts this code with -gnat2022. || | |True! Cool... In my opinion, contracts are among the coolest (and maybe| |more exclusive) features of Ada" | |-------------------------------------------------------------------------|
Boltar@caprica.Universe wrote: |---------------------------------------------|Its a PITA because you have to have it correct before it compiles, as
|"You ever had to program in Ada? Its a PITA."| |---------------------------------------------|
I disagree.
(S. HTTP://Gloucester.Insomnia247.NL/ fuer Kontaktdaten!)
Its a PITA because you have to have it correct before it compiles, as opposed to C++ where you don't.
On 5/10/26 16:24, Nioclás Pól Caileán de Ghloucester wrote:
Boltar@caprica.Universe wrote:Its a PITA because you have to have it correct before it compiles, as >opposed to C++ where you don't.
|---------------------------------------------|
|"You ever had to program in Ada? Its a PITA."|
|---------------------------------------------|
I disagree.
(S. HTTP://Gloucester.Insomnia247.NL/ fuer Kontaktdaten!)
Its a PITA because its long winded like Java, has the god awful pascal
style syntax, and far too many basic operations throw exceptions instead
of simply returning success/failure values.
Its a PITA because its long winded like Java, has the god awful pascal
style syntax, and far too many basic operations throw exceptions instead
of simply returning success/failure values.
On 11/05/2026 09:22, boltar@caprica.universe wrote:
Its a PITA because its long winded like Java, has the god awful pascal
style syntax, and far too many basic operations throw exceptions instead
of simply returning success/failure values.
so, you're admitting that you've never seen Ada, Pascal has a horrible
syntax mainly because of it's semicolon as a separator mess. Semicolon's
end statements in Ada, also looks nothing like Pascal apart from begin >blocks, which aren't in block statements unlike Pascal.
In comp.lang.c++ geodandw <geodandw@gmail.com> wrote:
Its a PITA because you have to have it correct before it compiles, as
opposed to C++ where you don't.
I have heard that Ada is being used in situations where correctness
is of utmost importance. One such field is aviation, I suppose.
br,
KK
Its a PITA because its long winded like Java,So Ada isn't optimal for code golf and obfuscation contests. Feel free
has the god awful pascal style syntax,You mean a syntax that doesn't let you write "if(x = 0)" bugs? A syntax
and far too many basic operations throw exceptions instead of simply returning success/failure values.Here's an example from last year of how returning success/failure
Its a PITA because its long winded like Java, has the god awful
pascal style syntax ...
Le 11/05/2026 à 10:22, boltar@caprica.universe a écrit :
Its a PITA because its long winded like Java, has the god awful
pascal style syntax, and far too many basic operations throw
exceptions instead of simply returning success/failure values.
Exceptions are much better for safety, since an exception cannot be
ignored, while it is too easy to forget to check a success/failure
return value.
"There is only one thing worse than a program that crashes: a
program that produces wrong, but apparently correct results"
Its a PITA because its long winded like Java,
So Ada isn't optimal for code golf and obfuscation contests. Feel free
to choose another language for those purposes.
Each line or fragment of source code is written once and read many
times. Thus clarity is more important than saving keystrokes. Typing
has the god awful pascal style syntax,
You mean a syntax that doesn't let you write "if(x =3D 0)" bugs? A syntax
that makes sense when read left-to-right, unlike C where the best way
to make sense of a declaration is to read it from the middle towards
both ends?
A syntax where instead of this:
}
}
}
}
you'll see this:
end if;
end loop;
end if;
end Foo;
If a closing brace is missing, a C/C++ compiler will spout lots of
misleading error messages, and then report the missing brace at the end
of the file =E2=80=93 or even at the end of another file. An Ada compiler c= >an
say "hey, an "end loop" is missing before this "end if" right here".
Yeah, how awful!
and far too many basic operations throw exceptions instead of simply retu= >rning success/failure values.
Here's an example from last year of how returning success/failure
values leads to bugs:
https://www.qualys.com/2025/02/18/openssh-mitm-dos.txt
Security researchers found several errors in the handling of error codes
in OpenSSH. One of them could be used to impersonate an SSH server. A
quote from their security advisory:
On Mon, 11 May 2026 08:22:55 -0000 (UTC), boltar wrote:
Its a PITA because its long winded like Java, has the god awful
pascal style syntax ...
Even C++ is now discovering why it can be preferable to have the
function return type specified after the arguments, rather than
before.
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,116 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 86:07:27 |
| Calls: | 14,305 |
| Files: | 186,338 |
| D/L today: |
823 files (254M bytes) |
| Messages: | 2,525,504 |