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
Seemingly inconsistent labels for List module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-05-29 (01:56)
From: Yaron Minsky <yminsky@g...>
Subject: Seemingly inconsistent labels for List module
I've noticed what appear to be inconsistent labelling on some list
functions, and I'm wondering if I'm properly understanding the reasons
behind the way the labels work.

For example, in the various association list functions, in some cases
the association list is passed with a ~map label, and sometimes with
no label.  Another odd case is the mem and memq functions, both of
which label the list being queried with the label ~set.  In this case,
the labelling mostly seems kind of useless rather than inconsistent.

I'm asking all of this because I'm playing around with writing a
labelled version of the extlib interface, and I'm wondering whether
these are mistakes that should be fixed, or whether there are good
reasons for them and they should be preserved.