Re:Swift 5.3 Will Be Supported on Windows and Additional Lin...
by quantummkv on Saturday May 16, 2020 @12:37AM
(#23200524)
A modern, powerful memory safe language? C++ is hardly a good choice for making casual small GUI apps.
[ Parent
| on HN ]
Re:Swift 5.3 Will Be Supported on Windows and Additional Lin...
by viraptor on Saturday May 16, 2020 @03:34AM
(#23201235)
Like Crystal, Go and Rust? (and QML for the basic events handling)
https://en.wikipedia.org/wiki/List_of_language_bindings_for_...
Re:Swift 5.3 Will Be Supported on Windows and Additional Lin...
by foldr on Saturday May 16, 2020 @10:23AM
(#23203588)
Have you made any non-trivial use of the Qt bindings for those languages? Qt is a big and complex library, and most bindings are incomplete or poorly documented. As far as I know, PyQt is the only Qt binding is the only one that you can really rely on to work now and in the future.
Re:Swift 5.3 Will Be Supported on Windows and Additional Lin...
by SitiSchu on Saturday May 16, 2020 @06:57PM
(#23207906)
There is PySide2/Qt for Python which are the official Python bindings for Qt by the Qt Company itself and they are close enough to the C++ API(since they are auto-generated) that it's possible to just use the C++ documentation and translate any C++ code into python nearly 1:1 (except things like QString where you can just use Pythons native types).
Re:Swift 5.3 Will Be Supported on Windows and Additional Lin...
by viraptor on Sunday May 17, 2020 @04:37AM
(#23210605)
Not terribly complex, but not trivial either. Yes, there are missing pieces in non-python ones. But given that basics are handled, it's often pretty easy to add the pieces which you need.
Re:Swift 5.3 Will Be Supported on Windows and Additional Lin...
by Memosyne on Saturday May 16, 2020 @12:57AM
(#23200608)
Qml supports ES7 so you only really need to touch C++ if you're not making "casual small GUI apps". If you need to draw custom items or do low level networking then yeah you need to use C++ but even then Qt is much friendlier than using the standard libraries.
Here is a Qt C++ example:
QString str = "/a/b/c/";
auto parts = str.split('/');