Skip to content

Commit f245ed8

Browse files
Update disadvantages.md
1 parent 55367db commit f245ed8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

book/languages/c/disadvantages.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
11
# Disadvantages
2+
3+
C has no support for closures, no guaranteed support of tail calls
4+
5+
There is no way to portably inspect the call stack. Hence, you cannot code something like GNU backtrace or `longjmp`/`setjmp` in
6+
portable C. Also, coding precise garbage collectors is very painful.
7+
8+
There is no ABI, every vendor made up their own. Higher level constructs have to be manually created or third-party libraries and
9+
other solutions used.
10+
11+
There are no namespaces, so it's easy to pollute global namespace and wreck something up.
12+
13+
Finally, C doesn't support exceptions and object oriented programming.

0 commit comments

Comments
 (0)