C + + prehistoric times and band classes

Source: Internet
Author: User

C + + prehistoric times1979, Bjarne Stroustrup, the Chinese name is very awkward, often called BS, in Bell Labs began to develop the C + + language. Why invent a new language? This involves the author's previous experience. At that time, BS studied the development of large-scale software in Cambridge with a PhD degree. BS has developed a simulator with Simula, but it runs very slowly, bcpl is very high, but low-level, development efficiency. So BS produces the idea of inventing a new language.
Here are some of BS's points of view: * After leaving Cambridge, I swore: "Without the right tools, never hit a problem." * My worldview influence C++:bs is a pragmatist, Master is pure mathematics and applied Mathematics, mathematics should be a tool to solve problems, interest in computers is also pragmatic. Long-term hobby of history, like Aristotle better than Plato. Many of *c++ 's design decisions stem from my extreme aversion to forcing individuals to act in a particular way. Respect for the crowd without respect for the individual is actually nothing but respect. * The love of literature reinforces the author's understanding that it is hopeless to make decisions based solely on theory and logic. People's price is always the highest, different people do things in different ways, tolerance and acceptance of this situation is my most willing thing. * I like skeptics, not "sincere believers" * I think the responsibility of scientists and intellectuals is to ensure that their ideas can be accepted by the public and thus useful to society, not to make some expert plaything. * The way people think is so colorful, C + + is intentionally designed to support a variety of styles. * A programming language is only a small part of the world, do not look too heavy, it is important to maintain their sense of humor, C + + in many languages have one-liners and jokes of the language, not by accident.
C with Class*c++ 's class is a user-defined type, why don't we just call him type, the reason for choosing class is that I don't want to invent new terminology, and Simula terms are appropriate. * Creating objects on the stack is much more efficient than creating objects on the heap. *in particular,steve Johnson and Dennis Ritchie affirmed that C is intended to has name equivalence rather than Structur Al equivalence. For example:struct A{intx,y;}; struct b{intx,y;}; Defines two incompatible types A and B. I like the name equivalence over struct equivalence, because I think this is the safest and clearest model * Why is the This of C + + a pointer instead of a reference, why is this instead of self? Because C + + had no reference mechanism at that time, C + + was a term borrowed from Simula rather than Smalltalk. * I have always been the view that people are too concerned about grammatical problems and damage the type problem.

C + + prehistoric times and band classes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.