From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on ip-172-31-91-241.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=none autolearn=unavailable autolearn_force=no version=4.0.1 Path: nntp.eternal-september.org!eternal-september.org!feeder.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?UTF-8?B?QmrDtnJu?= Persson Newsgroups: comp.lang.ada Subject: Re: In precision typing we trust Date: Thu, 28 Aug 2025 14:25:57 +0200 Message-ID: <20250828142557.1ec4a637@tag.xn--rombobjrn-67a.se> References: <107uv9g$3019a$1@dont-email.me> <107v1ji$303of$1@dont-email.me> <336fbb5f-a279-ea8e-67fd-f62bb00d6a89@irrt.De> <107vfb9$34cpj$1@dont-email.me> <10855lq$gj8l$1@dont-email.me> <1088h1a$19635$1@dont-email.me> <1089p1i$1ig1d$1@dont-email.me> <108aq2p$1qo9o$1@dont-email.me> <108dh2l$2f5h3$1@dont-email.me> <108ej11$2mbr8$1@dont-email.me> <108g1fv$32gqg$3@dont-email.me> <108h6b7$3a75k$3@dont-email.me> <108ijfj$3lihe$4@dont-email.me> <108jqcg$3ti12$2@dont-email.me> <87cy8im3kc.fsf@nightsong.com> <108kp8k$5pr0$1@dont-email.me> <878qj5my4l.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: individual.net uCg+d6ROkctxhOQ5lBcgNgn9OR03WYFAD9gpo1XwUZ8xBDFGjR Cancel-Lock: sha1:t61krVHSjGzwMQXl1MxX4lU7C1E= sha256:LaAwbI+FcpmtkmMGA+zXBj4SzRJt0gbNd9jOHu40wbQ= X-Newsreader: Claws Mail 4.3.1 (GTK 3.24.43; x86_64-redhat-linux-gnu) Xref: feeder.eternal-september.org comp.lang.ada:66973 List-Id: Paul Rubin wrote: > Python is reasonably reliable in the > sense that programs with errors will probably crash instead of going off > into the weeds. The saying is that correct code is great, code that > crashes could use improvement, but incorrect code that keeps running and > delivering wrong results is a disaster. Then let me tell you about a disaster. I once worked with a team of testers who wrote their testcases in Python. Each testcase was supposed to return True or False to report whether the test had succeeded or failed. Some testcases returned the string "true" or "false" instead. When an if statement is applied to a string in Python, "" is considered false but "false" is considered true. Thus the test framework kept running and reported the failing test as successful. The testers didn't notice. They didn't have tests to test their testcases. Whether that's reasonably reliable depends on one's opinion on what's reasonable, I suppose. As you guys are arguing =E2=80=93 or rather talking past each other =E2=80= =93 about Python in comp.lang.ada, can I assume that you all know what an Ada compiler would do with such code? Bj=C3=B6rn Persson