Am Sonntag, 9. Oktober 2011, 11:31:30 schrieb Thiago Macieira:
> On Sunday, 9 de October de 2011 10:38:51 Peter Kümmel wrote:
> > Duck typing?
> > 
> > Is there any mechanism in QML that guaranties that no run-time errors
> > will happen when the QML script is interpreted?
> > 
> > Qt5 will introduce static type checking for signal/slots-connects
> > so no connect could fail at run-time. But with interpreting QML at
> > run-time all the static checks of connects seems worthless when
> > QML is used, because much more errors could be introduced by the
> > QML script.
> 
> You seem to imply that any UI written in C++ will work out-of-the-box,
> regardless of the quality of the code written, just because the slot
> connections will error out at compile-time.
> 
That's not the point. The point here is that js is an interpreted language 
which means (as a simple example) a simple typo in the variable name can not 
be found until the project is actually executed. I spent a lot of time to 
throw a script language (tcl/tk) out of a project just to avoid this crap by 
replacing it with C++/Qt and now Qt introduce exactly the same... 


Christian Ehrlicher
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to