[PRL] Joel on Software - Making Wrong Code Look Wrong

Johan Ovlinger johan at ccs.neu.edu
Wed May 11 19:46:54 EDT 2005


If I may put words in Doug's mouth, I think he may have comitted a sin 
of omission.

William D Clinger wrote:
> Doug wrote:
> 
>>The gist of his Rant Against Exceptions seems to be
>>(translated to Scheme) that the expression "(begin (foo) (bar))"
>>may not always result in "bar" being called 
    [before the expression returns to its caller].

We should likely also ammend the sentence to also include some 
statement about flow of control to outside the dynamic extent of the 
expression.

Which is probably more correct, but has then left the realm of gist.

> 
> 
> If Doug is correct, then Joel's Rant Against Exceptions applies
> to all languages that support both procedure calls and infinite
> loops, e.g.
> 
>     procedure foo () while true do skip
>     procedure bar () ...
> 
>     begin foo(); bar() end
> 
> becomes an example of Joel's Rant Against Exceptions.
> 
> Seems kinda strange to me.
> 
> Will
> 
> _______________________________________________
> PRL mailing list
> PRL at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/prl




More information about the PRL mailing list