• Re: RANT: I hate untyped languages.

    From =?UTF-8?B?Q8OzaWzDrW4=?= =?UTF-8?B?IE5pb2Nsw6Fzw61u?==?UTF-8?B?IEdsb3N0w6lpcg==?=@[email protected] to comp.misc,comp.lang.ada on Wed Sep 16 19:21:01 2026
    From Newsgroup: comp.lang.ada

    Sylvia Else <[email protected]d> wrote: |----------------------------------------------------------------------------| |"And they actually teach Python at universities! Are they insane?" | |----------------------------------------------------------------------------|

    Yes. Program in Ada.

    |----------------------------------------------------------------------------| |"Companies should forget AI for programming, and just tell their | |developers that from now on, it's strongly types languages all the way down.| | | |Sylvia." | |----------------------------------------------------------------------------|

    This is a crosspost to comp.lang.ada

    (S. HTTP://Gloucester.Insomnia247.NL/ fuer Kontaktdaten!)
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From =?UTF-8?B?Q8OzaWzDrW4=?= =?UTF-8?B?IE5pb2Nsw6Fzw61u?==?UTF-8?B?IEdsb3N0w6lpcg==?=@[email protected] to comp.misc,comp.lang.ada on Thu Sep 17 11:57:16 2026
    From Newsgroup: comp.lang.ada

    Stefan Ram <[email protected]> schrieb: |------------------------------------------------------------------------|
    |"[. . .] |
    | |
    | I think the character case aspect is similar in Python and C: |
    | |
    | The following program has a case-related bug, and Python shows |
    | no error message: |
    | |
    |c = 299792458 |
    |C = 1 | |print( f"The speed of light is {C}." ) |
    | |
    | . But the same can be written in C: |
    | |
    |[. . .]" | |------------------------------------------------------------------------|

    This bug cannot happen in Ada.

    |------------------------------------------------------------------------|
    |" But here's a Python program trying to use an integer as an associative|
    | array: |
    | |
    |c = {} # associative array |
    |C = 1 # integer |
    |key = 0 # example key | |value = 0 # example value |
    |C[ key ]= value |
    | |
    | Console Transcript |
    | | |Traceback (most recent call last): |
    | File "demo.py", line 5, in <module> |
    | C[ key ]= value | |TypeError: 'int' object does not support item assignment |
    | |
    | . That's typing at work!" | |------------------------------------------------------------------------|

    Ada compilers refuse to let this mistake even become compiled, so an Ada-runtime executive does not perpetrate such a crash. This is a
    crosspost to comp.lang.ada
    (S. HTTP://Gloucester.Insomnia247.NL/ fuer Kontaktdaten!)
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@[email protected] to comp.misc,comp.lang.ada on Thu Sep 17 21:08:18 2026
    From Newsgroup: comp.lang.ada

    On Thu, 17 Sep 2026 11:57:16 -0000 (UTC), Cóilín Nioclásín Glostéir wrote:

    This bug cannot happen in Ada.

    But then, Ada cannot offer anything with the convenience of printf,
    can it?

    Python can.
    --- Synchronet 3.22a-Linux NewsLink 1.2