Re:JetBrains is working on a cross-platform C++ IDE
by qompiler on Wednesday April 03, 2013 @03:29AM
(#5484766)
Except for the fact that Qt is not as cross-platform as the standard C++ library. Qt also uses non-C++ features such as signals/slots which require usage of their own Meta Object Compiler.
[ Parent
| on HN ]
Re:JetBrains is working on a cross-platform C++ IDE
by mpyne on Wednesday April 03, 2013 @09:51AM
(#5486007)
Qt's moc is a preprocessor/code-generator which compiles to standard C++.
Do you also tell people that they shouldn't use flex/lex/bison/yacc/antlr/etc.? Why are those code generators/DSLs acceptable but the moc is not? It's not as if the Qt authors added it because they don't understand C++, they added it because it solves a vexing problem in C++ GUI design.
Re:JetBrains is working on a cross-platform C++ IDE
by qompiler on Wednesday April 03, 2013 @10:53AM
(#5486395)
I would have agreed with you if Qt used something like the #pragma directive. Alas, they decided to inject keywords inside of the standard language which breaks every C++ compiler.
Re:JetBrains is working on a cross-platform C++ IDE
by mpyne on Wednesday April 03, 2013 @10:56AM
(#5486421)
then... turn off the keywords?
Every Qt "keyword" you talk about can be disabled with a fallback to namespaced macros.
foreach -> Q_FOREACH slots: -> Q_SLOTS
etc.
Re:JetBrains is working on a cross-platform C++ IDE
by nicholassmith on Wednesday April 03, 2013 @06:54AM
(#5485265)
You can do stock C++ work in the Qt IDE, it's perfectly happy doing it.