Hacker News new | past | comments | ask | show | jobs | submit login

I also agree that the Swift is more clear, but only because it seems very "this is what is happening, go look up what you don't know"

disclaimer: I use swift, but also I have used python.




Languages that dump crap into the namespace on import are doing the wrong thing. Python has from x import * and every style guide says to never use it. Swift has a lot of other nice features, but the import thing is really a bungle. It is worse for everyone, beginners and experienced users alike. It is even bad for IDE users because you can't type imported-thing.<tab> to get the autocomplete for just the import. You're stuck with the whole universe of stuff jamming up your autocomplete.


`import func Foundation.CFAbsoluteTimeGetCurrent` imports just that function.


I don't necessarily think Swift is more clear, just that the original argument was unjustified in claiming Python was "clearly" superior.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: