3 ms·
The article was a reasonably persuasive argument for why Python should be your first language. Maybe someone should write "Why I want Swift to be relevant to n
by markhahn 11y ago
The article was a reasonably persuasive argument for why Python should be your first language. Maybe someone should write "Why I want Swift to be relevant to non-Appleheads".
- oddevan 11y agoExcept for the part where he specifically mentioned Swift's ARC as something to expose Intro students to vs. Python's garbage collection?
- zxcvcxz 11y agoIsn't ARC almost exclusive to "Apple languages"? It seems like GC is much more relevant.
- AlexeyBrin 11y agoNot necessarily, C++11 has smart pointers which have reference counting.
- gorena 11y ago- Python does not implement nullability as an ADT. - Python does not have a type system worth mentioning.
- AstralStorm 11y agoNullability 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.
- spion 11y agoIf its None, it neither looks, acts nor quacks like a duck.