How cross-platform is Swift ? Are the GUI libraries platform-dependent or independent ? I.E: can i write a single Swift program with a GUI that will compile, work the same and look similar on multiple platforms: Linux, Mac OS, Real Unix-es & BSDs, AIX, Windows ?
Swift is an open-source cross-platform language (there's even a Linux server version), but the Cocoa and Cocoa Touch APIs on OS X and iOS are platform specific.
Looking at? That doesn't answer my question. Is it being used for something else than a toy? And why? If I were to develop a Linux server application, Swift wouldn't even be in my top 10 language choice.
Swift is in fact more confusing and convoluted to read than the ubiquitous C++.
I've done a lot of C++ in the past and a lot of Swift in the present. At its worst Swift is 10x more readable than the average C++ code. Even if for some reason you are looking at the name managed output of class/method names in the debugger just compare that to the multi-page joy that was (is?) template class debugger output...
Just the fact that Swift does not support multiple inheritance lends it the automatic win.
Cross-platform (Score:5)
How cross-platform is Swift ?
Are the GUI libraries platform-dependent or independent ?
I.E: can i write a single Swift program with a GUI that will compile, work the same and look similar on multiple platforms: Linux, Mac OS, Real Unix-es & BSDs, AIX, Windows ?
Re: (Score:5, Informative)
Swift is an open-source cross-platform language (there's even a Linux server version), but the Cocoa and Cocoa Touch APIs on OS X and iOS are platform specific.
Re:Cross-platform (Score:2)
Is there a single swift program actually being used by more than 2 people in a basement which is NOT using these Apple APIs?
Re: (Score:2)
Re: (Score:2)
Looking at? That doesn't answer my question. Is it being used for something else than a toy? And why? If I were to develop a Linux server application, Swift wouldn't even be in my top 10 language choice.
Re: Cross-platform (Score:1)
Tell that to pissed revs who have to deal with never ending depreciations in Swift.
I hate to disillusion you, but Swift is in fact more confusing and convoluted to read than the ubiquitous C++.
C++ winds unreadably award by a mile (Score:2)
Swift is in fact more confusing and convoluted to read than the ubiquitous C++.
I've done a lot of C++ in the past and a lot of Swift in the present. At its worst Swift is 10x more readable than the average C++ code. Even if for some reason you are looking at the name managed output of class/method names in the debugger just compare that to the multi-page joy that was (is?) template class debugger output...
Just the fact that Swift does not support multiple inheritance lends it the automatic win.
Re: (Score:2)
(Telltale sound of dripping water indicating Android apologist)
Re: Cross-platform (Score:1)
IBM has been pushing it pretty hard. Just google IBM and swift.