Browse thread
[Caml-list] CamlP4 Revised syntax comment
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Damien Doligez <damien.doligez@i...> |
| Subject: | Re: [Caml-list] CamlP4 Revised syntax comment |
>>>> match a with >>>> | 0 -> >>>> | n -> >>>> end > but in the standard syntax you have to use parentheses over the entire > 'match...' > to resolve ambiguity. I find the following solution quite satisfactory, if a bit verbose: begin match a with | 0 -> ... | n -> ... end -- Damien ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners