What is the meaning of "construction" in programming languages

I see that the term “construction” very often appears in programming indications. The current book I am reading, C Programming by Stephen Coaching, has been used several times in this book. One example is given in the chapter on cyclization, which states:

"When developing programs, it sometimes becomes desirable to have a test run at the end of a cycle rather than at the beginning. Naturally, C provides a special language construct to deal with this situation. This cyclization operator is known as the do statement."

In this case, what does the term “construction” mean, and does the word “construction” have any relation to the object “constructor” in other languages?

+7
c
source share
4 answers

In this case, you can replace the word construct with syntax.

Does the word "construction" refer to the "constructor" of an object in other languages?

Not. These two terms are different. In C

there is nothing constructor
+4
source share

This is a general term that usually refers to a particular syntax included in the language to perform a task (for example, a loop with a condition at the end). It has nothing to do with designers. one


  • Well, except that constructors are a specific language construct in many OO languages.
+5
source share

Does the word "construction" refer to the "constructor" of an object in other languages?

The sentence uses a noun, not a verb, the meaning of the word "construction":

construct (n) - something (for example, an idea or theory) that is formed in the minds of people.

In this case, “construction” refers to an abstract way of describing something (namely, a loop) in terms of the syntax of that particular language. "Language construction" means "a way to do [something] with that language."

+3
source share

Design - it’s just a concept implementation mechanism used by this programming language - the syntax of the language.

In your case, the concept here is a loop, and its construction is the way it is implemented by the C programming language.

Programming languages ​​provide constructs for various programming concepts that determine how these programming concepts are implemented in that language.

Does the word "construction" refer to the "constructor" of an object in other languages?

The two terms are different from each other, the constructor is used in object-oriented languages ​​such as java, it is not available in the C programming language.

0
source share

All Articles