Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at ocaml.org.

Browse thread
Typing of the sequence operator (;)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Lukasz Stafiniak <lukstafi@g...>
Subject: Typing of the sequence operator (;)
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.

Best Regards,
Lukasz