On my wishlist: 'Design by Contract - DbC'

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

On my wishlist: 'Design by Contract - DbC'

Post by dell_jockey »

Definitely on my wishlist: 'Design by Contract - DbC' as it is implemented in Eiffel. Please check out http://smarteiffel.loria.fr to learn more about Eiffel.

For the uninitiated: DbC defines a way of adding a formal specification to every function/procedure that defines what it expects from the caller and what it promises to return to the caller. This formal specification is called a 'contract'. In Eiffel, these contracts are defined by the REQUIRE and ENSURE keywords. Don't mix up DbC with the ASSERT() macro in C. DbC goes way beyond that.

For those interested in DbC, do a Google search here: http://www.google.de/search?q=%22Design ... l=de&meta=

DbC is a very valuable method to foster software correctness. PureBasic could become the first Basic to implement it...
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

Another language that implements dbc is Lingo:

http://www.lingolanguage.com
Post Reply