News for hackers. Stuff that matters.
Re:Swift: Google’s Bet on Differentiable Programming by ericlewis on Thursday April 09, 2020 @01:24PM (#22824923)
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.

Re:Swift: Google’s Bet on Differentiable Programming by earthboundkid on Thursday April 09, 2020 @03:10PM (#22826075)
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.
Re:Swift: Google’s Bet on Differentiable Programming by freck on Friday April 10, 2020 @03:43PM (#22836645)
`import func Foundation.CFAbsoluteTimeGetCurrent` imports just that function.
Re:Swift: Google’s Bet on Differentiable Programming by naasking on Thursday April 09, 2020 @01:43PM (#22825170)
I don't necessarily think Swift is more clear, just that the original argument was unjustified in claiming Python was "clearly" superior.