Re:“Swift will be open source later this year”
by matthewmacleod on Monday June 08, 2015 @04:30PM
(#9682160)
What on earth are you talking about? Parsing a JSON response in Swift is basically the same as it is in Objective C:
[ Parent
| on HN ]
Re:“Swift will be open source later this year”
by zenocon on Monday June 08, 2015 @07:55PM
(#9683255)
This is truly not meant to be a snarky comment, but why is it so overtly verbose? I left Java years ago b/c it was making my fingers arthritic it seems. It doesn't look like much fun. Sure, IDEs do autocomplete, but still requires parsing by the human eye.
I'm sure you get used to it. Every language looks horrible the first time, then you learn to live with it and maybe love it, but on first glance that looks pretty awful.
Re:“Swift will be open source later this year”
by Glide on Tuesday June 09, 2015 @01:02AM
(#9684169)
Objective-C tends to err on the side of readability. Considering that source code is read many more times than it is written it's something I personally agree with. But yeah it's something you do get used to.
Java's problem is that C# exists and is a more expressive language.
Re:“Swift will be open source later this year”
by IsTom on Tuesday June 09, 2015 @02:04AM
(#9684295)
But this isn't readable at all.
If you compare it JSON.parse(x) or fromJSON x it's just awful.
Re:“Swift will be open source later this year”
by Dewie3 on Tuesday June 09, 2015 @04:52AM
(#9684688)
The idea that more verbose == more readable is so annoying. It seems to be especially egregious in languages like Ada, which look like this to me (an uninitiated):
okay here comes a function definition get ready
function MyFun() begin
return 1
end begin
end MyFun
end function okay we are done