After seeing so many WWDC videos showing advantages of Swift that don't look like they'll be added to ObjC, I decided to dig a bit deeper into Swift.
I noticed a few goofy things:
1. named parameters in the function calls that includes not naming the 1st param.
2. inout keyword, looks like a way to remind people of pass by ref vs value.
3. putting the function return type at the end of the function, whereas many popular languages put the return type at the start.
Although I'm just starting to dig into Swift, it really looks like it's a move in the wrong direction. I've heard some say it was more inline with a mobile development language, but I fail to see how these things have anything to do with mobile dev.
It looks like odd solution to something that really wasn't a problem, instead of trying to leverage knowledge people might have with other languages and making things more universal, they've taken a route that offers no clear advantage to the developer.
I haven't got into the OO part of the language, maybe they've made better choices there, but at this point, Swift does not look like a more natural or better suited for mobile development.
The playground or interactive part looks great, and I hope they added some better OO stuff, but it doesn't look great so far, but looks like we might not have a choice much longer. Maybe I just haven't give it enough time yet...
I noticed a few goofy things:
1. named parameters in the function calls that includes not naming the 1st param.
2. inout keyword, looks like a way to remind people of pass by ref vs value.
3. putting the function return type at the end of the function, whereas many popular languages put the return type at the start.
Although I'm just starting to dig into Swift, it really looks like it's a move in the wrong direction. I've heard some say it was more inline with a mobile development language, but I fail to see how these things have anything to do with mobile dev.
It looks like odd solution to something that really wasn't a problem, instead of trying to leverage knowledge people might have with other languages and making things more universal, they've taken a route that offers no clear advantage to the developer.
I haven't got into the OO part of the language, maybe they've made better choices there, but at this point, Swift does not look like a more natural or better suited for mobile development.
The playground or interactive part looks great, and I hope they added some better OO stuff, but it doesn't look great so far, but looks like we might not have a choice much longer. Maybe I just haven't give it enough time yet...