<?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/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"
  prev="2003/10/ce7c6be72bb67c47c5a7a60474df99bd"
  next="2003/10/c5939839af3d29e482d9f742f6f42b42"
  prev-in-thread="2003/10/ce7c6be72bb67c47c5a7a60474df99bd"
  next-in-thread="2003/10/f15efd219c36be9f95b4c19aa8d3f7b0"
  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>
On Mon, Oct 06, 2003 at 12:54:03PM +0100, Richard Jones wrote:
&gt; Hashtbls are much easier to use than Maps precisely for the reasons he
&gt; has outlined. They'd be even better if the language offered syntactic
&gt; support for them (but this just reflects my Perl background), eg:
&gt; 
&gt; let hash = {| "foo", "bar"; "a", "b" |} in
&gt; hash.{"foo"} &lt;- "baz";
&gt; prerr_endline hash.{"foo"};	# would print "baz"

  http://camlcvs.inria.fr/cgi-bin/osearch?conf=humps&amp;words=hashtbl

with a slight different syntax:

  let hash = {}["foo", "bar"; "a", "b"] in
  hash{"foo"} &lt;- "baz";
  prerr_endline (hash{"foo"})

Cheers.

-- 
Stefano Zacchiroli  --  Master in Computer Science @ Uni. Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it}  -  http://www.bononia.it/zack/
"  I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!  " -- G.Romney

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

