News for hackers. Stuff that matters.
Re:False Cognates and Syntax: The Importance of Syntax in Pr... by Tyr42 on Tuesday May 29, 2012 @11:50AM (#4038027)
I don't think that's valid Haskell. Examples of Haskell:

    case (x>y) of {True -> "Yup"; False -> "Nope");}
or

    if (x>y) then "Yup" else "Nope"
An example that uses otherwise would be

    fizzbuzz x | x `mod` 15 == 0 = "Fizzbuzz"
               | x `mod` 5  == 0 = "Buzz"
               | x `mod` 3  == 0 = "Fizz"
               | otherwise       = show x  -- This is x.to_string

There are no comments on this comment yet.