[Development] Make Qt6 JNI API safer to use

2020-03-05 Thread Bogdan Vatra via Development
Hi, I started to review and move androidextras to qtbase (qtbase/src/corelib/ platform/android). Here we have a problem with our Qt JNI API. The problem is that in Java exceptions are (ab)used everywhere. Even if we have a way to check for exceptions after each call in Qt, it's not used (not e

Re: [Development] Make Qt6 JNI API safer to use

2020-03-05 Thread Vitaly Fanaskov
I think something like std::expected is a nice thing to have. There is some experimental implementation of std::expected: https://github.com/TartanLlama/expected. Another good example is Result (https://doc.rust-lang.org/std/result/index.html) type from Rust. But might look clumsy in C++, beca

Re: [Development] Make Qt6 JNI API safer to use

2020-03-05 Thread Thiago Macieira
On Thursday, 5 March 2020 07:14:44 PST Vitaly Fanaskov wrote: > I think something like std::expected is a nice thing to have. > > There is some experimental implementation of std::expected: > https://github.com/TartanLlama/expected. > > Another good example is Result > (https://doc.rust-lang.or

Re: [Development] Make Qt6 JNI API safer to use

2020-03-05 Thread Bogdan Vatra via Development
În ziua de joi, 5 martie 2020, la 17:21:11 EET, Thiago Macieira a scris: > On Thursday, 5 March 2020 07:14:44 PST Vitaly Fanaskov wrote: > > I think something like std::expected is a nice thing to have. > > > > There is some experimental implementation of std::expected: > > https://github.com/Tart

Re: [Development] Make Qt6 JNI API safer to use

2020-03-05 Thread Thiago Macieira
On Thursday, 5 March 2020 07:29:07 PST Bogdan Vatra via Development wrote: > În ziua de joi, 5 martie 2020, la 17:21:11 EET, Thiago Macieira a scris: > > On Thursday, 5 March 2020 07:14:44 PST Vitaly Fanaskov wrote: > > > I think something like std::expected is a nice thing to have. > > > > > > Th

Re: [Development] Make Qt6 JNI API safer to use

2020-03-05 Thread Bogdan Vatra via Development
Hi, În ziua de joi, 5 martie 2020, la 17:14:44 EET, Vitaly Fanaskov a scris: > I think something like std::expected is a nice thing to have. > > There is some experimental implementation of std::expected: > https://github.com/TartanLlama/expected. > That implementation is my favorite, I really

[Development] Github issues

2020-03-05 Thread Samuel Gaist via Development
Hi, For once, something not strictly code related :-) Some of the latest Qt modules that have been synced to GitHub still have "issues" activated and for example: https://github.com/qt/qtquick3d has already several posted. Also concerned: https://github.com/qt/qtshadertools https://github.co