C + + language design rules

Source: Internet
Author: User

Goal
    • C + + should make it more enjoyable for serious programmers to think of programming.
    • C + + is a general-purpose programming language that should
      • It's a better c.
      • Support for Data abstraction
      • Support for object-oriented programming
General rules
    • The development of C + + must be driven by practical problems
    • Not to be involved in the pursuit of perfection.
    • C + + must now be useful
    • Each characteristic must have a reasonable and obvious realization way
    • Always provide a pathway to change
    • C + + is a language, not a complete system
    • Provide comprehensive support for each style that should be supported
    • Don't try to force people to do anything.
Design Support Rules
    • Support for sound design concepts
    • Provide various mechanisms for the organization of the program
    • Just say what you mean.
    • All the characteristics must be affordable
    • It is more important to allow a useful feature than to prevent various errors
    • Supports a combination of software from a separately developed partial division
Technical rules of language
    • Does not implicitly violate the static type system
    • Provides equally good support for user-defined types as internal types
    • Localization is a good thing
    • Avoiding sequential dependencies
    • If in doubt, choose the most obvious form of the feature
    • Grammar is important (often works in a way that we do not want in dictation)
    • Clear the need to use a preprocessor
Low-level programming support rules
    • Use a traditional (dumb) connector
    • No reason for incompatibility with C
    • Do not leave space below C + + for lower-level languages (except assembly language)
    • There's no need to pay for what you don't (0 overhead rules)
    • Manual control is provided where there is a problem.

C + + language design rules

Related Article

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.