What a weird and pointless comparison, imo (I mean the inclusion of Python, seems so random to me).
What a weird and pointless comparison, imo (I mean the inclusion of Python, seems so random to me).
Of course, it's an easy target. But I can see why they went for it.
I would have been interested in a JavaScript comparison, which I'm sure we'll be seeing from third parties soon.
println("Hello")
I think the idea was that Swift will be as easy to code as Python and faster than Objective-C.There's no reason C#, Java, etc. can't have such things exposed, but they get so wrapped up in their boilerplate and OO overhead they choose not to.
It's supposed to be a "mainstream" scripting language. Also, it's an easy way for them to get favorable numbers for their presentation.
http://forums.somethingawful.com/showthread.php?threadid=363...
"Is this under NDA?
No.
Is this open source?
Not yet. It probably will be, but I can't make promises. Right now, our repository still has a lot of history that we don't want to make public, and we have a lot of work to do before we release."
They probably just used python as an example of something most people would know. Its probably the most known scripting language out there so why not use it.
Besides ALL benchmarks are pointless, even when you have the source of the benchmarks and know what they ran on software/hardware wise.
On the superficial level, the use of line breaks to separate statement (although ; can also be used), on the deeper level the is an accent on accessibility and no non sense behaviour, where other language might have made more compromises on readability for instance.
I guess the comparison with Python is that Swift code looks more like Python than C.