c++ - Using new standards -
I have been told (properly or incorrectly) that I used many older standards of C and C ++ should do. For example, in Uni module I did it on C. This year, we had to use ANSI C (which I believe is C8 9?). The second time I was asked to use the C 99. Every time I have been told any of these, the reason for this is that due to the new facilities, C11 is not safe to use, which can not be supported by every compiler etc. (I'm not a huge expert on this, so this explanation would be great).
I think a standard still is not widely used after 3 years of its release. Are these people wrong or is it a bad idea to use CA11 and C ++ 11?
Neither, both ... are made of heritage.
No You should use the latest tools available on your platform and it is compatible with other elements of the system. New equipment allow for "better" programming, safe programs, more concise programs, etc. Yes You should use the old tool, okay, very simple, there is a lot of work to do. Some of them will be on very old systems ... getting familiar with equipment issues will help when changes need to be made. Your target audience (people and systems) will determine which tool to use and which device to support, the least common denominator almost always wins. For this reason, I think that this principle is inspiration for previous compatibility. If new tools do not break the old code, the process of moving forward becomes slower. In general, to use new language features with new compilers, this is a good idea . A general step within the industry supports new languages (even before the standard closes, clags and GCC with the upcoming C ++ 14).
Comments
Post a Comment