Created
September 13, 2012 20:30
-
-
Save dungpa/3717385 to your computer and use it in GitHub Desktop.
Common mistake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type TickTack = Tick | Tack | |
let ticker x = | |
match x with | |
| Tick -> printfn "Tick" | |
| Tock -> printfn "Tock" | |
| Tack -> printfn "Tack" | |
ticker Tick | |
ticker Tack | |
// would output | |
// Tick | |
// Tock | |
// instead of seemingly obvious | |
// Tick | |
// Tack |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment