Business

C – The influence factor of many popular programming languages

Many widely used languages ​​that came after C, such as C#, PHP, Java, LPC, JavaScript, and Unix’s Shell, are directly or indirectly influenced by C. Syntactical has been the deepest influence in which all the languages ​​mentioned above come along with , more or less recognizably, the C expression syntax and declaration. On the other hand, data models, type systems, and/or large-scale program structures are different, sometimes radically, from those of C. It remains one of the most influential languages ​​in the world, especially in the realm of embedded systems.

C++ and Objective C:

With the popularity of object-oriented languages, it was C++ and Objective C that were the two different extensions of C and the ones that provided goal-oriented efficiencies. Both languages ​​were initially implemented as source-to-source compilers, meaning the source code was translated into C and then compiled with a C compiler.

C++:

To make object-oriented functionality available with a C-like syntax, Bjarne Stroustrup elaborated on the C++ programming language as an approach, since C++ includes superior scope, force typing, and other tools that are useful in object-oriented programming and allows generic programming through templates. Almost a superset of C, C++ now includes most of C, albeit with a few exceptions.

Target C:

Originally, Objective C was a fairly thin layer on top of C that enables object-oriented programming by means of hybrid static or dynamic typing prototype. It is still a strong superset of C. In addition to C, from which Objective C inherits the syntax covering preprocessing, expressions, function declarations, and function calls, Objective C originally borrowed the syntax for object-oriented functions from Smalltalk.

D:

The D language, which, unlike C++, which maintains almost all backward compatibility with C, makes a clean split with C while retaining the same broad-spectrum syntax. What D does is have a number of C features, such as the C preprocessor and trigraphs, that D’s designer, Walter Bright, considered unnecessary. However, not all but some of the extensions from D to C have something in common with those from C++.

Piton:

One of the most important examples of a scripting language that has its origins deep in C is Python. Although Python’s syntax is not the same as C’s, it is written in C. Also, the fact that Python is an open source program allows programmers to extend Python with C, or integrate it into programs written in C. It also it is due to the close connection to C that Python enjoys its success as a general-purpose programming language.

Pearl:

Another example is from Perl. Perl differs from Python in that its syntax closely follows C syntax. Furthermore, Perl is not only written in C, but works quite well with programs that have C extensions.

Leave a Reply

Your email address will not be published. Required fields are marked *