[
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: | 2005-11-12 (04:11) |
From: | skaller <skaller@u...> |
Subject: | Re: [Caml-list] Typing of the sequence operator (;) |
On Fri, 2005-11-11 at 20:33 +0100, Lukasz Stafiniak wrote: > Dear list, > > Why does the sequence operator (;) have type 'a -> 'b -> 'b and not > unit -> 'a -> 'a? There is (ignore) for doing "these things" > purposefully. The toplevel warning is very often mute. Together with > labels, this is a source of bugs. Yes, I actually think this should be made a hard error. In transition, a compiler flag to let it pass. The only place I can see where you might want to 'drop' a returned value is when interfacing the external world. -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net