Skip to content

Comment on Why I want Swift to be your first languageparent

Comments

Nullability is an interface, not a data type. Python objects can always be None, as per duck typing.

Python has a strong dynamic typing system, with metatypes, type rewriting and so on. You couldn't be more wrong. What it is missing is an easy way to declare interfaces - the idea is to use duck typing and handling exceptions when something goes wrong.

If its None, it neither looks, acts nor quacks like a duck.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.