- From: Arnold Doray <invalid@xxxxxxxxxxx>
- Date: Wed, 9 May 2012 15:02:59 +0000 (UTC)
Is there a way to implement boolean short-circuiting in Forth?
: bad? ( img -- f )
dup error? if true exit then
dup corrupted? if true exit then
old? if true exit then
Which seems terribly repetitious to me. But I don't want to / can't
perform CORRUPTED? if ERROR? returns true.
Is there a better way?