[Python-ideas] Why operators are useful

Richard Damon Richard at Damon-Family.org
Sat Mar 16 13:51:07 EDT 2019


On 3/16/19 8:14 AM, Dan Sommers wrote:
> On 3/16/19 6:17 AM, Richard Damon wrote:
>> On 3/16/19 4:39 AM, Greg Ewing wrote:
>>> Rémi Lapeyre wrote:
>>>> I think this omit a very important property of
>>>> mathematic equations thought, maths is a very strongly typed language
>>>> which can be a significant improvement for readability.
>>>
>>> Python is very strongly typed too, so I don't really see how
>>> maths is different.
>>
>> 'Strongly Typed Language' can have slightly different meaning to
>> different people. In Python, an object have a very definite type which
>> strongly defines what you can do with that object, while other languages
>> are less definitive in that aspect. But in Python, names are NOT that
>> strongly typed, as a name can be rebound to any sort of object with a
>> wide variety of types, compared to other languages where before using
>> (or at first use) a variable you need to declare the 'type' that will be
>> stored in it, and that type is all that it can hold.
>
> That's not strong vs. weak typing, that's dynamic vs. static typing.
>
> That said, I agree that different people get this wrong.  :-)

As I said, different meaning to different people, Some consider that
dynamic typing implies not a totally strong typing (since the name
doesn't have a well know type).

-- 
Richard Damon



More information about the Python-ideas mailing list