Browse thread
[Caml-list] checking for same ctor type?
-
Chris Hecker
- Brian Rogoff
- Chris Hecker
- Chris Quinn
[
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: | Chris Hecker <checker@d...> |
| Subject: | Re: [Caml-list] checking for same ctor type? |
>let ctor_equal a b = > match a,b with > String(_),String(_) | Float(_),Float(_) -> true | _,_ -> false Right, I should have added "without writing out all the cases". :) > Yes, but there's only one implementation, right? Unless they never update it again, then "implementation dependent" is usually a bad thing, in my book (and the ocaml folks shouldn't want people depending on implementation details either, since it makes their lives miserable when it comes time to update stuff). Chris ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr