comp.lang.ada
 help / color / mirror / Atom feed
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Subject: Re: who needs types? Types makes code ugly.
Date: Thu, 02 Jun 2022 10:28:44 -0700	[thread overview]
Message-ID: <87h753rn3n.fsf@nosuchdomain.example.com> (raw)
In-Reply-To: t79ab6$a4v$1@gioia.aioe.org

"Nasser M. Abbasi" <nma@12000.org> writes:
> So Ada had it wrong all the time it seems. From
>
> https://python.land/python-tutorial
>
> ------------
> In a strongly typed language, you need to specify the exact
> type of each variable, like String, int, and float. It
> gets even uglier when objects are involved.
>
> Now let’s look at Python variables. In Python, we can do
> exactly the same without types:
>
> my_name = "Erik"
> my_age = 37
> my_salary = 1250.70
>
> As you can see, the Python variant is a lot cleaner and easier on the eyes!
> ----------------------
>
> And about possible error, they defend this by saying:
>
> --------------------------
> In addition, you’ll find out soon enough during testing
> and fix the error before the software ever goes to production.
> ---------------------------

That's just one tutorial.  It likely doesn't reflect the views of most
Python programmers.  The "python.land" site has no official connection

And for what it's worth, Python 3.5 added support for "type hints".
https://docs.python.org/3/library/typing.html

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */

      parent reply	other threads:[~2022-06-02 17:28 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-02  3:21 who needs types? Types makes code ugly Nasser M. Abbasi
2022-06-02  8:00 ` Doctor Who
2022-06-02  8:37   ` Dmitry A. Kazakov
2022-06-02 10:08     ` Nasser M. Abbasi
2022-06-02 10:39       ` Dmitry A. Kazakov
2022-06-02 13:22     ` Stéphane Rivière
2022-06-06 23:26     ` Jerry
2022-06-02 10:47 ` Jeffrey R.Carter
2022-06-02 11:47 ` ldries46
2022-06-02 15:02   ` Ben
2022-06-02 22:10     ` John Perry
2022-06-03  0:02       ` Ben
2022-06-03  3:37         ` Dennis Lee Bieber
2022-06-03 18:13           ` Ben
2022-06-03 18:34             ` Niklas Holsti
2022-06-03 20:27               ` John Perry
2022-06-03 20:56               ` Ben
2022-06-04  0:28               ` Randy Brukardt
2022-06-04 12:05                 ` What's new in Ada 2022? (was: Re: who needs types? Types makes code ugly.) Dirk Craeynest
2022-06-17 17:33                 ` who needs types? Types makes code ugly Wesley Pan
2022-06-17 20:46                   ` Paul Rubin
2022-06-18  2:06                   ` Randy Brukardt
2022-06-18 10:29                     ` Dirk Craeynest
2022-06-18 22:16                       ` Paul Rubin
2022-06-20 21:40                       ` Randy Brukardt
2022-06-02 17:28 ` Keith Thompson [this message]
replies disabled

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