Talk:Guard (computing)

From Wikipedia, the free encyclopedia

[edit] Just another name?

Is this just Haskell's name for a switch statement? —Preceding unsigned comment added by 130.76.32.15 (talkcontribs)

Guard is a way more general concept, and any switch, case, or cond statement that uses guards in choosing the branch to take is more expressive than the alternative statements that use equality or set containment tests. --TuukkaH 20:51:12, 2005-09-07 (UTC)