From: Blair Z. <bl...@or...> - 2003-03-03 05:55:39
|
Nicolas Cannasse wrote: > > > > Hi list > > > > > > Here's most of the functions ( sorted by module ) that I been gathered > from > > > different mails here and there. There might me some mission functions > but I > > > tried to make the whole consisted and documented. You will see that I > have > > > included both Global and MList modules, since MList seems to be > approved, > > > and Global-like used by several people here. > > > > Looks great. > > > > Can we rename MList to something more descriptive, such as List_Mutable? > > I don't think so... > Because lots of people ( including me ) are not actually opening the List > module for example, and are using the fully qualified namespace "List.iter" > to call functions. And after several times List_Mutable.iter is getting > really verbose ( by the way that seems to be the caml team opinion as well > since we have Hashtbl and not Hashtable module ) Well, Hashtbl is at least understandable what it is, shortening Mutable to M is not. And I wouldn't necessarily read into the ocaml team's opinion as well that this amount of name shortening is good. I would ask one of the main team to back this claim. If you use a particular name enough, then you could always do let miter = List_Mutable.iter in your code. So this gets your short names and gets me my long names. I'm concerned that when COAN gets going, there's going to be name collisions and choosing very short names will lead to collisions later on. > > I think this would be relevant and consistent with other module > distributions, > > such as different XML parsing modules that would all be named with an XML* > > prefix. > > I think that MList is understandable enough for the average user. Not claiming to be an average user :) (Most Ocaml users probably aren't) It wasn't for me. In the week that MList was first discussed and when I got around to looking at ExtLib, I had already forgotten what MList meant. Best, Blair -- Blair Zajac <bl...@or...> Plots of your system's performance - http://www.orcaware.com/orca/ |