[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Markus Mottl <mottl@m...> |
| Subject: | Re: Announcement: LACAML |
On Thu, 25 Jan 2001, Jan Skibinski wrote: > But the result was stunningly clear, consise and easy to > understand even by the beginners. > I do not know whether similar approach would be feasible with > Ocaml objects, but if yes then I would recommend it highly. I think that default arguments in OCaml are a very fine means to hide the complexity of function interfaces without sacrificing richness of features and efficiency. Using objects would also be a solution, but having to call methods of objects to parameterize them does not seem so natural to me. Some time ago, when there was a flame war on this list whether labels are really of any use, I tried several ways of parameterisation (objects, option lists, default arguments), and I found that default arguments were both the most elegant and the most efficient solution. Furthermore, I am somewhat reluctant what concerns using objects, but that's another story... > > * To make things easy for people used to the "real" implementation > > in FORTRAN but also for beginners who need detailed documentation, > > both function- and argument names have been kept compatible to the > > ones used in the BLAS- and LAPACK-documentation. > > I do not see a need for this. The names are probably as awkward > as in NAG. Just consistently refer to the original names in your > documentation and you should be fine. Funny as it may seem, I find awkward names easier to remember. If names become too similar, which may happen when there are so many functions for similar problems, one can easily mix them up. Humans don't seem to have problems memorizing thousands of foreign words so using "awkward" names for functions is probably less confusing than requiring people to lookup different identifiers in documentation. (Btw., there is some logic behind the naming of BLAS- and LAPACK-functions). - Markus Mottl -- Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl