Liste des Groupes | Revenir à cl c |
On 27/08/2024 10:36, Bonita Montero wrote:[...]Am 27.08.2024 um 09:37 schrieb David Brown:Any simple one-line claim here is clearly going to be wrong.
>
>But it is also fair to say that abstractions are less than you might see on "big" systems. For systems programming, there is more concern about the efficiency of the results, ...>
C++ is efficient and abstract in one.
C++ code can be efficient, or abstract, or both, or neither. The language supports a wide range of coding practices, including bad ones.
Some types of abstraction inevitably have run-time costs (speed or code space), which can be highly relevant in resource-constrained systems or other situations where efficiency is paramount (games programming is a fine example). These abstractions may or may not be worth the cost in the overall picture - it is up to the software developer to figure that out, regardless of the language.
>Incorrect. Like most low-level or systems programmers using C++, I have exceptions disabled and never use them.We very rarely see exceptions in this field, but OOP is certainly common now.>
You have to accept exceptions with C++ since there are a lot of places
where C++ throws a bad_alloc or system_error.
Les messages affichés proviennent d'usenet.