caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] String.unescaped and some other little pitiful laments
@ 2001-07-10 18:07 Berke Durak
  2001-07-10 18:55 ` Markus Mottl
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Berke Durak @ 2001-07-10 18:07 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-07-11 20:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-10 18:07 [Caml-list] String.unescaped and some other little pitiful laments Berke Durak
2001-07-10 18:55 ` Markus Mottl
2001-07-11  6:44   ` Jean-Christophe Filliatre
2001-07-11  6:37 ` Jean-Christophe Filliatre
2001-07-11  7:29   ` Claude Marche
2001-07-11 18:03   ` Jerome Vouillon
2001-07-11 19:30 ` Xavier Leroy
2001-07-11 20:33   ` Markus Mottl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).