Re: if else else
- From: Gerry Snyder <gerrysnyder@xxxxxxxxxxxx>
- Date: Tue, 30 Jan 2007 17:59:39 GMT
slebetman@xxxxxxxxx wrote:
Hmm.. why make it confusing and call it "else" why not "cleanup" or "finally". Other constructs can benefit from this:
if {test} {
something
} elseif {test} {
something
} else {
something else
} finally {
cleanup
}
switch -- foo {
pattern {
something
}
pattern {
something
}
default {
something else
}
finally {
cleanup
}
}
It would be clearer to me that the action would be taken only in case of a match if the "cleanup" or "finally" went before the "else" and "default".
Gerry
.
- References:
- if else else
- From: Fredderic
- Re: if else else
- From: slebetman@xxxxxxxxx
- if else else
- Prev by Date: Re: UI design for Tk app--PNG's or GIF's for icons?
- Next by Date: TCL8.5a5 does not cross- compile for ARM processor
- Previous by thread: Re: if else else
- Next by thread: Re: if else else
- Index(es):
Relevant Pages
|