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 RAA15560; Mon, 25 Aug 2003 17:46:41 +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 RAA28445 for ; Mon, 25 Aug 2003 17:46:40 +0200 (MET DST) Received: from mlabdial.hit.bme.hu (mlabdial.hit.bme.hu [152.66.248.201]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h7PFkef21464 for ; Mon, 25 Aug 2003 17:46:40 +0200 (MET DST) Received: (from kgergely@localhost) by mlabdial.hit.bme.hu (8.11.6/8.11.6) id h7PFkdW03168 for caml-list@inria.fr; Mon, 25 Aug 2003 17:46:39 +0200 Date: Mon, 25 Aug 2003 17:46:39 +0200 From: KONTRA Gergely To: caml-list@inria.fr Subject: Re: [Caml-list] hash objectified Message-ID: <20030825154639.GC2900@mlabdial.hit.bme.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030821165832.GA5890@force.stwing.upenn.edu> User-Agent: Mutt/1.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; kontra:01 gergely:01 kgergely:01 mlabdial:01 caml-list:01 hash:01 lovas:01 java's:01 library's:01 hashtbl:01 foo:01 foo:01 shorter:01 gergo:01 kontra:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On 0821, William Lovas wrote: [...] > There's no need for everything to be an object, and i don't really see > what that would buy you in the long run, since O'Caml doesn't have any > "top" or "top-like" type, like Java's Object. Why do you want the standard > library's functionality replicated in object form? > > William Hashtbl.add h "foo" "bar" <--> h#add "foo" "bar" Because it is shorter to type -> less errors, quicker programming OO can be cool. (see ruby) I'm not OO fan, but lazy :) Gergo -- +-[ Kontra, Gergely PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+ ----- End forwarded message ----- -- +-[ Kontra, Gergely PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+ ------------------- 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