30. Tcl and C Integration Philosophy
While it is possible to write a large variety of applications completely in Tcl, in some cases it is useful or necessary to combine Tcl and C code, and it is common to find large applications with portions written in both.
Where possible, it is almost always best to write Tcl code instead of using the C programming language. Tcl programs are easier to write and quicker to modify, require less expertise, and are therefore more accessible to other programmers. Scripts do not require recompilation after every change and are also generally less difficult to debug. However, there are times when programming in C is the best choice.
Fortunately, Tcl makes it very pleasant and productive to combine Tcl and C, having ...
Get Tcl and the Tk Toolkit, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.