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 UAA29244; Tue, 10 Jul 2001 20:20:50 +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 UAA29240 for ; Tue, 10 Jul 2001 20:20:49 +0200 (MET DST) Received: from localhost.localdomain (Mix-Montsouris-110-2-145.abo.wanadoo.fr [193.248.189.145]) by concorde.inria.fr (8.11.1/8.10.0) with SMTP id f6AIKjb18393 for ; Tue, 10 Jul 2001 20:20:46 +0200 (MET DST) Received: (qmail 31746 invoked by uid 1001); 10 Jul 2001 18:07:34 -0000 Date: Tue, 10 Jul 2001 20:07:34 +0200 From: Berke Durak To: caml-list@inria.fr Subject: [Caml-list] String.unescaped and some other little pitiful laments Message-ID: <20010710200734.B10265@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk There's a reversible String.escaped function, and I think it would be nice to have its inverse function built in the String module. Also I'd like to see those horrible functions returning parameters in global variables be eradicated, such as those that can be found in the Str (regular expression) module. Is there a complete, typeful regular expression package entirely written in Ocaml ? Many people on this list are talking lighthearted about functions such as Obj.magic. These functions are pure evil. It makes me sorry to see that my favorite language has an unsafe and ugly type casting function. Modules using such features should be flagged as ``evil'', and the use of these functions should not be publicly advocated. PS. What is the purpose of the "uses unsafe features" flag in .cmo files ? (it can be seen in the output of the "objinfo" program in the tools/ directory of the compiler). I've made a test program using unsafe features such as Obj and Array.unsafe_get but the flag wasn't set. -- Berke Durak ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr