|
Re: Guards (Was: Some random newbie questions): msg#00097lang.haskell.cafe
Henning Thielemann wrote: What about dropping Guards? :-) Are they necessary? Do they lead to more I hardly need guards too, but their advantage is that they let pattern matching fail, resulting in trying out following patterns. case l of [i] | i /= 0 -> (/i) _ -> error "a single message here for all other cases" Cheers Christian |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Implementing computations with timeout: 00097, Tomasz Zielonka |
|---|---|
| Next by Date: | Re: Implementing computations with timeout: 00097, Tomasz Zielonka |
| Previous by Thread: | Guards (Was: Some random newbie questions)i: 00097, Henning Thielemann |
| Next by Thread: | Re: Guards (Was: Some random newbie questions): 00097, Jon Cast |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |