4 ms·
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,
by ericlewis 7y ago
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.
- naasking 7y agoI don't necessarily think Swift is more clear, just that the original argument was unjustified in claiming Python was "clearly" superior.
- earthboundkid 7y agoLanguages 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.
- freck 7y ago`import func Foundation.CFAbsoluteTimeGetCurrent` imports just that function.