From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA11754; Tue, 16 Sep 2003 09:33:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA30518 for ; Tue, 16 Sep 2003 09:33:01 +0200 (MET DST) Received: from mf1.bredband.net (mf1.bredband.net [195.54.106.36]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8G7X0f14445 for ; Tue, 16 Sep 2003 09:33:00 +0200 (MET DST) Received: from abc.se ([213.113.221.31]) by mf1.bredband.net with ESMTP id <20030916073259.QTWQ490.mf1@abc.se> for ; Tue, 16 Sep 2003 09:32:59 +0200 Message-ID: <3F66BCAA.5050701@abc.se> Date: Tue, 16 Sep 2003 09:32:58 +0200 From: Mattias Waldau User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030827 X-Accept-Language: en-us, en MIME-Version: 1.0 CC: caml-list@inria.fr Subject: Re: [Caml-list] date manipulation library References: <20030915143708.GK2354@alan-schm1p> <20030915183458.GA6577@fistandantilus.takhisis.org> <20030916072016.GB9403@fistandantilus.takhisis.org> In-Reply-To: <20030916072016.GB9403@fistandantilus.takhisis.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; mattias:01 waldau:01 mattias:01 waldau:01 caml-list:01 java's:01 gcc:01 gcc-:01 util:01 ocaml:01 fewer:02 korea:97 interface:03 interface:03 library:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk If you are going to implement a Date-library from scratch, please steal the interface. Either you make a ripoff of Microsoft or Java. The advantages are obvious: 1. You do not have to document the interface 2. You do not waste time reimplementing the wheel 3. Fewer bugs 4. The library will be complete from start 5. Porting applications to/from Ocaml gets easier The source for Java's implementation can be found at http://korea.gnu.org/gcc/src/gcc-3.1/libjava/java/util/Date.java -- Mattias ------------------- 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