What significant exceptions exist for the null principle, if any?

As an (possible) example, the LLVM coding standard prohibits the use of standard RTTI or exceptions: http://llvm.org/docs/CodingStandards.html#do-not-use-rtti-or-exceptions

Is this a good idea, or is it a coding standard, outdated or unreasonable for most programs?

Are there any other functions in C ++ that significantly degrade program speed, memory usage, or executable size, even if you don't use them?

+4
source share
1 answer

Is this a good idea or an outdated coding standard?

RTTI " ", ( ), (.. ), , , . RTTI - . RTTI , , RTTI, ( LLVM). , RTTI, , ( , , ) /, , , . (, ) . , , RTTI, , , , . LLVM - , , down-casting, , , -casts ( RTTI) . " RTTI" , , , , /.

++, , , , . , . , , .. , ( , , if?), ( ). , , -. , " ", , , throw-to-catch. . , " , " , ( ), . , , , , , ( catch ), , , , C . (, " - , !" ), . , LLVM ( , , , , ), , , " , , - ". , .

, " , " ?

, , , ( , ). , , " ".

IO- (<iostream>) . , , . IO- . , std::ostream std::ofstream, , /, /. , , - IO , . , , , , , - . BTW, LLVM IO-, , LLVM , - (, ).

, , , . , -, . , , thread, chrono, regex random, , , , , . , . .

, , , . -, , , . restrict , , (, ), . , "" , . , ( , , ..). , , , , C, . , , , , .

, , , , () , . , noexcept , .

- ++ ( RTTI ). , ++ , , "" ( ), , , , ..... " , " . , ++, Embedded ++.

+9

Source: https://habr.com/ru/post/1540109/


All Articles