The Artima Developer Community
Sponsored Link

Weblogs Forum
Programming with "Duh" Typing

370 replies on 371 pages. Most recent reply: Aug 8, 2007 9:54 AM by James Watson

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 370 replies on 371 pages [ « | 1 ... 302 303 304 305 306 307 308 309 310 ... 371  | » ]
Isaac Gouy

Posts: 527
Nickname: igouy
Registered: Jul, 2003

word games Posted: Jul 30, 2007 2:38 PM
Reply to this message Reply
Advertisement
James Watson wrote
> I prefer ambiguity to useless oversimplifications. I find
> it strange that you think defining 'correct' as "passing
> all tests" to be preferable to the commonly understood
> "meets all requirements".

Where is it commonly understood that 'correct' means "meets all requirements"?

"And the final question is ‘How do we know that the program is in fact correct?’ The theory of programming tells us that this final assurance can in principle be given by mathematical reasoning and proof, guaranteeing that the specifications are a logical consequence of the text of the program." "The ideal of program correctness" Tony Hoare

Programs are verified "correct" against a specification - in contrast, the only way we can validate the program "meets all requirements" is to ask someone "is this what you wanted?".


> If we use the 'passes all tests' definition, a program
> that is not tested is, by definition, correct.

If we apply the same level of absurdity to your suggested definition we will conjure up an equally absurd conclusion.

A program that is not tested is by definition untested.

Flat View: This topic has 370 replies on 371 pages [ « | 302  303  304  305  306  307  308  309  310 | » ]
Topic: Programming with "Duh" Typing Previous Topic   Next Topic Topic: Python 3000 Plea for Help

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use