English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse 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: 2005-11-11 (19:33)
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,