[
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: | Jon Harrop <jon@f...> |
| Subject: | Re: [Caml-list] Patterns that evaluate |
On Thursday 15 February 2007 00:26, Jacques Garrigue wrote: > As with any extension, an important question with views is whether > they should be in the language, as in F#, or supported by the > preprocessor as you did. After all, pattern-matching in Scheme is > entirely based on macros, and people are perfectly happy with > that. Why is it not the case in ML? Because, thanks to typing, we can > check exhaustivity and overlapping, and use this information to detect > error and optimize compilation. Unfortunately, views do not allow > that... Actually, I believe F# implements that in some form. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. OCaml for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists