Browse thread
[Caml-list] raise extra arg ignored
[
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: | Pixel <pixel@m...> |
| Subject: | Re: [Caml-list] raise extra arg ignored |
Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr> writes: > I wonder whether there are situations where it could be a problem? > Sometimes, a missing semicolon can introduce typing errors or perhaps > work with different semantics (what is very bad). But here, I don't > see, since, generally, nobody add another statement after a "raise". > Does anybody have an example? well, mine was not a big deal, twas something like this: failwith "foo %s bar" (foo bar) which of course should have been failwith (sprintf "foo %s bar" (foo bar)) it didn't take me long to understand what the pb was, but at runtime ;p ------------------- 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