Thread
:
Maemo 6 loosing source compatibility with plain Qt, and Symbian^4
View Single Post
sjaensch
2010-01-12 , 20:03
Posts: 24 | Thanked: 38 times | Joined on Nov 2009
#
121
Originally Posted by
lpotter
ok, so what's your real problem then.. with #ifdefs?
They are, by and large, evil. That's why Stroustrup discourages the use of macros in particular and the preprocessor in general. That's why practically all newer languages got rid of the preprocessor (while copying many other concepts and syntactic stuff from C/C++).
I'm sure you can find plenty of literature on the subject if you are really interested. The points made by Mark Wilcox are valid. Just because people manage to cope with #ifdefs does not mean they are the best (or a good) solution for the problem. One of the greatest achievements of Qt was and is that it got rid of a hell of a lot of #ifdefs, increasing productivity (and testability) along the way.
Quote & Reply
|
The Following 11 Users Say Thank You to sjaensch For This Useful Post:
attila77
,
Flandry
,
Jaffa
,
manda
,
Mark Wilcox
,
mikhas
,
Netweaver
,
pillar
,
Texrat
,
VDVsx
,
zchydem
sjaensch
View Public Profile
Send a private message to sjaensch
Visit sjaensch's homepage!
Find all posts by sjaensch