From: Axel S. <A....@uk...> - 2002-11-20 08:45:36
|
On Sun, Nov 17, 2002 at 02:53:09PM +0900, Jens Petersen wrote: > > Let's call it > > initGUI :: IO [String] > > which returns the argument list. > > Ok, that seems to make sense. > > > Perhaps we could just rename main to runMain or mainRun > > but that does not really convey what the function > > does. That's why I suggested loopRun (or just loop?). > > In following with initGUI, how about mainGUI then? Though > perhaps initGTK, mainGTK would be better? Since there is no mentioning of GTK anywhere else I'd rather conceal the fact that is GTK: If anyone uses Mogul, functions named ...GTK seem to be confusing. > But the question also arises, how will this renaming fit > into a future hierarchial module naming scheme? I think the problems will stay the same. You usually import all entities and become more qualified when you use names ambiguously (e.g. main always clashes unless you don't use it in the main module). Since these functions are always used, it seems to be justified to rename them so they don't clash. > > > Though it seems to me just renaming `init' and `main' is > > > sufficient. > > Yes, but I think the other functions should have similar names since they > > talk about the same logical object. > > True. So shall we go for mainGUI, initGUI, ....? Axel. |