<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/10/f15efd219c36be9f95b4c19aa8d3f7b0"
  from="brogoff@s..."
  author="brogoff@s..."
  date="2003-10-07T16:37:42"
  subject="Re: [Caml-list] Re: [Ocaml-lib-devel] pMap.ml"
  prev="2003/10/6e23c026cd6f46b33e8960026081757d"
  next="2003/10/b6ee5565f014409bebb67533d11c826d"
  prev-in-thread="2003/10/03b8ca71a3620cf16e94b780d84ecbea"
  next-in-thread="2003/10/b6ee5565f014409bebb67533d11c826d"
  prev-thread="2003/10/925fbd349fd7a57457dbdae0cc2507bb"
  next-thread="2003/10/928f58d248b3d019446c5690c7664f0a"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Re: [Ocaml-lib-devel] pMap.ml">
<msg 
  url="2003/10/ce7c6be72bb67c47c5a7a60474df99bd"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2003-10-06T11:54:38"
  subject="[Caml-list] Re: [Ocaml-lib-devel] pMap.ml">
<msg 
  url="2003/10/03b8ca71a3620cf16e94b780d84ecbea"
  from="Stefano Zacchiroli &lt;zack@b...&gt;"
  author="Stefano Zacchiroli"
  date="2003-10-06T12:06:41"
  subject="Re: [Caml-list] Re: [Ocaml-lib-devel] pMap.ml">
<msg 
  url="2003/10/f15efd219c36be9f95b4c19aa8d3f7b0"
  from="brogoff@s..."
  author="brogoff@s..."
  date="2003-10-07T16:37:42"
  subject="Re: [Caml-list] Re: [Ocaml-lib-devel] pMap.ml">
<msg 
  url="2003/10/b6ee5565f014409bebb67533d11c826d"
  from="skaller &lt;skaller@o...&gt;"
  author="skaller"
  date="2003-10-07T20:18:02"
  subject="Re: [Caml-list] Re: [Ocaml-lib-devel] pMap.ml">
</msg>
</msg>
</msg>
<msg 
  url="2003/10/c5939839af3d29e482d9f742f6f42b42"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2003-10-06T16:56:08"
  subject="[Caml-list] Re: [Ocaml-lib-devel] pMap.ml">
</msg>
</msg>
</thread>

<contents>
While it's nice to have stopgap solutions to these "problems", IMO the right
solution will be possible when we have some kind of overloading in the language.
Rather than having lots of squirrelly notations for hashtable access (and string
access, and BigArray access, and...) we should just be able to index like arrays
and be done with it. Lack of user defined overloading has always been a weak
point in the entire ML family of languages, IMO.

Hopefully, now that 3.07 is out, work on GCaml proceeds apace...

-- Brian

On Mon, 6 Oct 2003, Stefano Zacchiroli wrote:
&gt; On Mon, Oct 06, 2003 at 12:54:03PM +0100, Richard Jones wrote:
&gt; &gt; Hashtbls are much easier to use than Maps precisely for the reasons he
&gt; &gt; has outlined. They'd be even better if the language offered syntactic
&gt; &gt; support for them (but this just reflects my Perl background), eg:
&gt; &gt;
&gt; &gt; let hash = {| "foo", "bar"; "a", "b" |} in
&gt; &gt; hash.{"foo"} &lt;- "baz";
&gt; &gt; prerr_endline hash.{"foo"};	# would print "baz"
&gt;
&gt;   http://camlcvs.inria.fr/cgi-bin/osearch?conf=humps&amp;words=hashtbl
&gt;
&gt; with a slight different syntax:
&gt;
&gt;   let hash = {}["foo", "bar"; "a", "b"] in
&gt;   hash{"foo"} &lt;- "baz";
&gt;   prerr_endline (hash{"foo"})
&gt;
&gt; Cheers.
&gt;
&gt; --
&gt; Stefano Zacchiroli  --  Master in Computer Science @ Uni. Bologna, Italy
&gt; zack@{cs.unibo.it,debian.org,bononia.it}  -  http://www.bononia.it/zack/
&gt; "  I know you believe you understood what you think I said, but I am not
&gt; sure you realize that what you heard is not what I meant!  " -- G.Romney
&gt;
&gt; -------------------
&gt; To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
&gt; Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
&gt; Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
&gt;

-------------------
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

</contents>

</message>

