Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library)
From: Andreas Rossberg <rossberg@ps.uni-sb.de>

> >> there is good practical reason that map, fold, etc take the 
> >> container as their last argument. ;-)
> > 
> > Except that the folds in Hashtbl, Map.S and Set.S have the container in 
> > the second position (as does List.fold_right).
> 
> Which I consider a design error indeed. :-)

open MoreLabels

(Sorry, but sometimes I want to remind people that parameter order is
not really relevant)

To be precise with labels you have:
* the container is the first unlabelled argument
* it can be in the last position simultaneously

  Jacques Garrigue

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners