Criticism of the C programming language: Difference between revisions

Content deleted Content added
type punning isn't the only or the best way to simulate those features in Standard C
Line 15:
C does not have some features that are available in some other programming languages:
* No assignment of arrays or strings (copying can be done via standard functions; assignment of objects having <code>struct</code> or <code>union</code> type is supported)
* No [[Garbage collection (computer science)|automatic garbage collection]]
* No requirement for [[bounds checking]] of arrays
* No [[array programming|operations on whole arrays]]
Line 26 ⟶ 27:
* No compile-time polymorphism in the form of [[function (computer science)|function]] or [[operator]] [[overloading]]
* Only rudimentary support for [[generic programming]]
* NoVery directlimited support for [[object-oriented programming]] with regard to [[polymorphism in object-oriented programming|polymorphism]] orand [[inheritance (computer science)|inheritance]], although a limited form of these may be achieved with [[type punning]].
* Limited support for [[Information hiding|encapsulation]].
* No native support for [[multithreading]] and [[computer networks|networking]]
* No standard libraries for [[GUI|graphics]] and several other application programming needs