News for hackers. Stuff that matters.
Re:Show HN: I Wrote a Book on Java by jstimpfle on Monday September 23, 2024 @07:36PM (#41631690)
In some significant ways, it's not strong at all. It's stronger than Javascript but it's difficult not to be. Python is a duck typing language for the most part.
Re:Show HN: I Wrote a Book on Java by js2 on Monday September 23, 2024 @08:14PM (#41631873)
Duck typing isn't really an argument against it being relatively strongly typed. Python enforces types errors at runtime and does not implicitly convert between types. These are attributes of strong typing. But as I wrote, strong/weak is not rigorously defined, so if duck typing disqualifies it for you, so be it, but I think Python lands on the strong side of the scale.

https://langdev.stackexchange.com/questions/3741/how-are-str...

Re:Show HN: I Wrote a Book on Java by cbsmith on Monday September 23, 2024 @09:14PM (#41632195)
I always think of Python as having "fairly strong" typing, because you can override the type of objects by just assigning to __class__.
Re:Show HN: I Wrote a Book on Java by htuyfjsdkfw on Tuesday September 24, 2024 @11:26PM (#41643417)
Duck typing doesn't exist. What you refer to as duck typing is the inherit nature of dynamic typing.