Static typing implementation for Python

Chris Angelico rosuav at gmail.com
Sun Oct 11 17:40:55 EDT 2015


On Mon, Oct 12, 2015 at 8:33 AM, Random832 <random832 at fastmail.com> wrote:
> Ben Finney <ben+python at benfinney.id.au> writes:
>> The opposite of string typing is weak typing.
>
> Well, I would say *string* typing [as used in, for example, sh and tcl]
> is actually a form of weak typing. But anyway, the other issue is that
> strong typing is meaningless. In general it seems like weak typing means
> "the existence of implicit operations (either type conversions or any
> other operation between objects of different types) that I don't like".
>
> "Duck typing" of the sort that Python has, for example, could be and
> sometimes is regarded as a form of weak typing.

"Strong typing" is anything the current speaker likes. "Weak typing"
is anything the current speaker dislikes.

I'm fairly sure most arguments about "readable" or "unreadable" code
follow the same definitions.

ChrisA



More information about the Python-list mailing list