DbC in standard C++ compiler

So, how should you write the contract in standard C++ or your C++ environment? You can get many sample codes from internet because many C++ programmers challenge the proposition.

Ironically, one of the best solutions is shown in D programming language’s official site. It is the page that compares DbC of D with DbC of C++ and insists that D is more better than C++. But, that C++ code is very good hint to challenge DbC in the standard C++. This page teaches us that we must use much technique in C++ for realize DbC.

The similar challenger is there in Java. It will be difficult for us to realize DbC enough in C++ and Java unless these languages implement DbC as their spec. However, admiration to DbC will bring right use of assert. We often forget importance of assert.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s